From d61ee5a72f5cc6e87675ba5a2fd1cb2a14ec218f Mon Sep 17 00:00:00 2001 From: Carlos Garcia Date: Wed, 21 Apr 2021 17:58:46 +0200 Subject: [PATCH] Update native block insertion UI test Media picker is now automatically displayed when adding an image block so we have to include this case in the UI tests. --- .../__device-tests__/gutenberg-editor-block-insertion-2.test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react-native-editor/__device-tests__/gutenberg-editor-block-insertion-2.test.js b/packages/react-native-editor/__device-tests__/gutenberg-editor-block-insertion-2.test.js index 48db9d1e704d7..d146634735701 100644 --- a/packages/react-native-editor/__device-tests__/gutenberg-editor-block-insertion-2.test.js +++ b/packages/react-native-editor/__device-tests__/gutenberg-editor-block-insertion-2.test.js @@ -54,6 +54,8 @@ describe( 'Gutenberg Editor tests for Block insertion 2', () => { await separatorBlockElement.click(); await editorPage.addNewBlock( blockNames.image, 'before' ); + await editorPage.driver.sleep( 1000 ); + await editorPage.closePicker(); const expectedHtml = `