Skip to content

Commit acb1d71

Browse files
committed
fixup! ✨(frontend) add resizable left panel on desktop with persistence
1 parent a8af8b8 commit acb1d71

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

src/frontend/apps/e2e/__tests__/app-impress/left-panel.spec.ts

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { expect, test } from '@playwright/test';
22

3+
import { createDoc } from './utils-common';
4+
35
test.describe('Left panel desktop', () => {
46
test.beforeEach(async ({ page }) => {
57
await page.goto('/');
@@ -12,11 +14,19 @@ test.describe('Left panel desktop', () => {
1214
await expect(page.getByTestId('new-doc-button')).toBeVisible();
1315
});
1416

15-
test('checks resize handle is present and functional', async ({ page }) => {
16-
await page.goto('/');
17+
test('checks resize handle is present and functional on document page', async ({
18+
page,
19+
browserName,
20+
}) => {
21+
// On home page, resize handle should NOT be present
22+
let resizeHandle = page.locator('[data-panel-resize-handle-id]');
23+
await expect(resizeHandle).toBeHidden();
24+
25+
// Create and navigate to a document
26+
await createDoc(page, 'doc-resize-test', browserName, 1);
1727

18-
// Verify the resize handle is present on desktop
19-
const resizeHandle = page.locator('[data-panel-resize-handle-id]').first();
28+
// Now resize handle should be visible on document page
29+
resizeHandle = page.locator('[data-panel-resize-handle-id]').first();
2030
await expect(resizeHandle).toBeVisible();
2131

2232
const leftPanel = page.getByTestId('left-panel-desktop');

0 commit comments

Comments
 (0)