From fbb0559f4447430610b6ed333674ccce73242a87 Mon Sep 17 00:00:00 2001 From: Jos Date: Fri, 12 Aug 2022 10:30:42 +0800 Subject: [PATCH] remove swipe down and extra click on title element (#43080) Co-authored-by: jos <17252150+jostnes@users.noreply.github.com> --- .../__device-tests__/gutenberg-editor-block-insertion.test.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/react-native-editor/__device-tests__/gutenberg-editor-block-insertion.test.js b/packages/react-native-editor/__device-tests__/gutenberg-editor-block-insertion.test.js index 4dfbf56f52a5a5..abebfc7486962c 100644 --- a/packages/react-native-editor/__device-tests__/gutenberg-editor-block-insertion.test.js +++ b/packages/react-native-editor/__device-tests__/gutenberg-editor-block-insertion.test.js @@ -2,7 +2,7 @@ * Internal dependencies */ import { blockNames } from './pages/editor-page'; -import { isAndroid, swipeDown, clickMiddleOfElement } from './helpers/utils'; +import { isAndroid, clickMiddleOfElement } from './helpers/utils'; import testData from './helpers/test-data'; describe( 'Gutenberg Editor tests for Block insertion', () => { @@ -95,12 +95,10 @@ describe( 'Gutenberg Editor tests for Block insertion', () => { await editorPage.dismissKeyboard(); } - await swipeDown( editorPage.driver ); const titleElement = await editorPage.getTitleElement( { autoscroll: true, } ); await titleElement.click(); - await titleElement.click(); await editorPage.addNewBlock( blockNames.paragraph ); paragraphBlockElement = await editorPage.getTextBlockAtPosition(