From 70789f02bc17960b160f5c2b6532337bad470197 Mon Sep 17 00:00:00 2001 From: Ella van Durpe Date: Tue, 16 Jun 2020 16:42:49 +0300 Subject: [PATCH] RichText: attempt to fix RTL e2e tests --- packages/e2e-tests/specs/editor/various/rtl.test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/e2e-tests/specs/editor/various/rtl.test.js b/packages/e2e-tests/specs/editor/various/rtl.test.js index c4fd3797cc292..831557b9c5223 100644 --- a/packages/e2e-tests/specs/editor/various/rtl.test.js +++ b/packages/e2e-tests/specs/editor/various/rtl.test.js @@ -104,6 +104,9 @@ describe( 'RTL', () => { await page.evaluate( () => ( document.dir = 'rtl' ) ); 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( ARABIC_ONE ); await pressKeyWithModifier( 'primary', 'b' );