File tree Expand file tree Collapse file tree 3 files changed +5
-25
lines changed
src/frontend/apps/e2e/__tests__/app-impress Expand file tree Collapse file tree 3 files changed +5
-25
lines changed Original file line number Diff line number Diff line change @@ -45,13 +45,8 @@ test.describe('Doc Create', () => {
45
45
} )
46
46
. click ( ) ;
47
47
48
- await page . waitForURL ( '**/docs/**' , {
49
- timeout : 10000 ,
50
- waitUntil : 'domcontentloaded' ,
51
- } ) ;
52
-
53
48
const input = page . getByRole ( 'textbox' , { name : 'Document title' } ) ;
54
- await expect ( input ) . toHaveText ( '' ) ;
49
+ await expect ( input ) . toHaveText ( '' , { timeout : 10000 } ) ;
55
50
await expect (
56
51
page . locator ( '.c__tree-view--row-content' ) . getByText ( 'Untitled document' ) ,
57
52
) . toBeVisible ( ) ;
@@ -72,13 +67,8 @@ test.describe('Doc Create', () => {
72
67
. getByText ( 'New sub-doc' )
73
68
. click ( ) ;
74
69
75
- await page . waitForURL ( '**/docs/**' , {
76
- timeout : 10000 ,
77
- waitUntil : 'domcontentloaded' ,
78
- } ) ;
79
-
80
70
const input = page . getByRole ( 'textbox' , { name : 'Document title' } ) ;
81
- await expect ( input ) . toHaveText ( '' ) ;
71
+ await expect ( input ) . toHaveText ( '' , { timeout : 10000 } ) ;
82
72
await expect (
83
73
page . locator ( '.c__tree-view--row-content' ) . getByText ( 'Untitled document' ) ,
84
74
) . toBeVisible ( ) ;
Original file line number Diff line number Diff line change @@ -396,13 +396,9 @@ test.describe('Doc Export', () => {
396
396
} )
397
397
. click ( ) ;
398
398
399
- await page . waitForURL ( '**/docs/**' , {
400
- timeout : 10000 ,
401
- waitUntil : 'domcontentloaded' ,
402
- } ) ;
403
-
404
399
const input = page . locator ( '.--docs--doc-title-input[role="textbox"]' ) ;
405
- await expect ( input ) . toBeVisible ( { timeout : 20000 } ) ;
400
+ await expect ( input ) . toBeVisible ( ) ;
401
+ await expect ( input ) . toHaveText ( '' , { timeout : 10000 } ) ;
406
402
await input . click ( ) ;
407
403
await input . fill ( randomDocFrench ) ;
408
404
await input . blur ( ) ;
@@ -473,12 +469,6 @@ test.describe('Doc Export', () => {
473
469
474
470
await expect ( interlink ) . toBeVisible ( ) ;
475
471
476
- // Open export modal before triggering the download
477
- await page . getByTestId ( 'doc-open-modal-download-button' ) . click ( ) ;
478
- await expect (
479
- page . getByTestId ( 'doc-open-modal-download-button' ) ,
480
- ) . toBeVisible ( ) ;
481
-
482
472
const downloadPromise = page . waitForEvent ( 'download' , ( download ) => {
483
473
return download . suggestedFilename ( ) . includes ( `${ docChild } .pdf` ) ;
484
474
} ) ;
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ test.describe('Doc Header', () => {
66
66
browserName,
67
67
} ) => {
68
68
await createDoc ( page , 'doc-update' , browserName , 1 ) ;
69
- const docTitle = page . getByRole ( 'textbox' , { name : 'doc title input ' } ) ;
69
+ const docTitle = page . getByRole ( 'textbox' , { name : 'Document title' } ) ;
70
70
await expect ( docTitle ) . toBeVisible ( ) ;
71
71
await docTitle . fill ( '👍 Hello Emoji World' ) ;
72
72
await docTitle . blur ( ) ;
You can’t perform that action at this time.
0 commit comments