From 78b823db47a71238b3ed908f9179835c6191b347 Mon Sep 17 00:00:00 2001 From: Ella Date: Tue, 17 Oct 2023 12:28:04 +0300 Subject: [PATCH 1/2] Try to fix flaky synced pattern test --- test/e2e/specs/editor/various/writing-flow.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/specs/editor/various/writing-flow.spec.js b/test/e2e/specs/editor/various/writing-flow.spec.js index a772bd91276c21..43663c6200db96 100644 --- a/test/e2e/specs/editor/various/writing-flow.spec.js +++ b/test/e2e/specs/editor/various/writing-flow.spec.js @@ -1129,7 +1129,7 @@ test.describe( 'Writing Flow (@firefox, @webkit)', () => { await expect( editor.canvas.locator( '[data-type="core/block"]' ) - ).toBeFocused(); + ).toBeVisible(); await editor.insertBlock( { name: 'core/paragraph' } ); From 6a282966f80e79e9553e2983b6e12b02e73136ec Mon Sep 17 00:00:00 2001 From: Ella Date: Tue, 17 Oct 2023 12:32:50 +0300 Subject: [PATCH 2/2] Make sure content is loaded --- test/e2e/specs/editor/various/writing-flow.spec.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/e2e/specs/editor/various/writing-flow.spec.js b/test/e2e/specs/editor/various/writing-flow.spec.js index 43663c6200db96..a248915a21fcba 100644 --- a/test/e2e/specs/editor/various/writing-flow.spec.js +++ b/test/e2e/specs/editor/various/writing-flow.spec.js @@ -1128,7 +1128,9 @@ test.describe( 'Writing Flow (@firefox, @webkit)', () => { await page.keyboard.press( 'Enter' ); await expect( - editor.canvas.locator( '[data-type="core/block"]' ) + editor.canvas.locator( + '[data-type="core/block"] [data-type="core/paragraph"]' + ) ).toBeVisible(); await editor.insertBlock( { name: 'core/paragraph' } );