File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed
src/frontend/apps/e2e/__tests__/app-impress Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 11import { expect , test } from '@playwright/test' ;
22
3+ import { createDoc } from './utils-common' ;
4+
35test . 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' ) ;
You can’t perform that action at this time.
0 commit comments