From 4a568119163411456abbbf7a6ceefc7ff2d041cb Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Sat, 17 Jun 2023 08:44:59 +0400 Subject: [PATCH] Fix flaky 'Keep styles on block transforms' e2e test (#51593) --- .../editor/various/keep-styles-on-block-transforms.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/e2e/specs/editor/various/keep-styles-on-block-transforms.spec.js b/test/e2e/specs/editor/various/keep-styles-on-block-transforms.spec.js index 35895f05209be1..c8ca539bda4150 100644 --- a/test/e2e/specs/editor/various/keep-styles-on-block-transforms.spec.js +++ b/test/e2e/specs/editor/various/keep-styles-on-block-transforms.spec.js @@ -12,9 +12,9 @@ test.describe( 'Keep styles on block transforms', () => { page, editor, } ) => { + await editor.openDocumentSettingsSidebar(); await editor.canvas.click( 'role=button[name="Add default block"i]' ); await page.keyboard.type( '## Heading' ); - await editor.openDocumentSettingsSidebar(); await page.click( 'role=button[name="Color Text styles"i]' ); await page.click( 'role=button[name="Color: Luminous vivid orange"i]' ); @@ -44,7 +44,7 @@ test.describe( 'Keep styles on block transforms', () => { title: 'test', } ); } ); - // Create a paragraph block with some content. + await editor.openDocumentSettingsSidebar(); await editor.canvas.click( 'role=button[name="Add default block"i]' ); await page.keyboard.type( 'Line 1 to be made large' ); await page.keyboard.press( 'Enter' ); @@ -77,7 +77,7 @@ test.describe( 'Keep styles on block transforms', () => { page, editor, } ) => { - // Create a paragraph block with some content. + await editor.openDocumentSettingsSidebar(); await editor.canvas.click( 'role=button[name="Add default block"i]' ); await page.keyboard.type( 'Line 1 to be made large' ); await page.click( 'role=radio[name="Large"i]' );