File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
src/frontend/apps/e2e/__tests__/app-impress Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ test.describe('Doc Editor', () => {
233
233
test . skip ( browserName === 'webkit' , 'This test is very flaky with webkit' ) ;
234
234
235
235
// Check the first doc
236
- const doc = await goToGridDoc ( page ) ;
236
+ const [ doc ] = await createDoc ( page , 'doc-quit-1' , browserName , 1 ) ;
237
237
await expect ( page . locator ( 'h2' ) . getByText ( doc ) ) . toBeVisible ( ) ;
238
238
239
239
const editor = page . locator ( '.ProseMirror' ) ;
@@ -272,8 +272,8 @@ test.describe('Doc Editor', () => {
272
272
) . toBeVisible ( ) ;
273
273
} ) ;
274
274
275
- test ( 'it adds an image to the doc editor' , async ( { page } ) => {
276
- await goToGridDoc ( page ) ;
275
+ test ( 'it adds an image to the doc editor' , async ( { page, browserName } ) => {
276
+ await createDoc ( page , 'doc-image' , browserName , 1 ) ;
277
277
278
278
const fileChooserPromise = page . waitForEvent ( 'filechooser' ) ;
279
279
Original file line number Diff line number Diff line change @@ -120,13 +120,14 @@ test.describe('Doc Header', () => {
120
120
121
121
await editor . locator ( 'h1' ) . fill ( '' ) ;
122
122
123
+ // eslint-disable-next-line playwright/no-wait-for-timeout
124
+ await page . waitForTimeout ( 500 ) ;
125
+
123
126
await docHeader
124
127
. getByRole ( 'heading' , { name : 'Top World' , level : 2 } )
125
128
. fill ( ' ' ) ;
126
129
127
- await page . getByText ( 'Created at' ) . click ( {
128
- delay : 200 ,
129
- } ) ;
130
+ await page . getByText ( 'Created at' ) . click ( ) ;
130
131
131
132
await expect (
132
133
docHeader . getByRole ( 'heading' , { name : 'Untitled document' , level : 2 } ) ,
You can’t perform that action at this time.
0 commit comments