From 10494eb3052086dec468e457cf45d2dcfd6b0757 Mon Sep 17 00:00:00 2001 From: KHeo Date: Fri, 8 May 2020 11:32:31 +0900 Subject: [PATCH] Fix flaky. --- packages/e2e-tests/specs/editor/various/rich-text.test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/e2e-tests/specs/editor/various/rich-text.test.js b/packages/e2e-tests/specs/editor/various/rich-text.test.js index e29475984b7f88..8135962e22556e 100644 --- a/packages/e2e-tests/specs/editor/various/rich-text.test.js +++ b/packages/e2e-tests/specs/editor/various/rich-text.test.js @@ -256,6 +256,9 @@ describe( 'RichText', () => { it( 'should handle Home and End keys', async () => { await page.keyboard.press( 'Enter' ); + // Wait for rich text editor to load. + await page.waitForSelector( '.block-editor-rich-text__editable' ); + await pressKeyWithModifier( 'primary', 'b' ); await page.keyboard.type( '12' ); await pressKeyWithModifier( 'primary', 'b' );