Skip to content

Commit b99066b

Browse files
committed
test(playwright): improve conflict dialog stickyness test
Type majority of content while online. Should fix flakyness of the test in CI. Signed-off-by: Jonas <jonas@freesources.org>
1 parent 3c21190 commit b99066b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

playwright/e2e/conflict.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,12 +335,14 @@ test('conflict dialog is sticky when scrolling', async ({
335335
const pushPromise = page.waitForRequest(/push/)
336336
await editor.typeHeading('Long content\n')
337337
await pushPromise
338-
await setOffline()
339338

340339
for (let i = 1; i < 8; i++) {
341340
await editor.typeHeading(`Section ${i}`)
342341
await editor.type('\n\nLorem ipsum dolor sit amet.\n\n')
343342
}
343+
344+
await setOffline()
345+
await editor.type('unsaved changes')
344346
await close()
345347

346348
await setOnline()

0 commit comments

Comments
 (0)