From c78051c7a5bb8d66dc7da1dee05291a54a1734a1 Mon Sep 17 00:00:00 2001 From: Julia Amosova Date: Fri, 18 Sep 2020 19:15:53 -0400 Subject: [PATCH] Place back `scrollIntoView` to OBW e2e test. --- tests/e2e/specs/activate-and-setup/setup-wizard.test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/e2e/specs/activate-and-setup/setup-wizard.test.js b/tests/e2e/specs/activate-and-setup/setup-wizard.test.js index 22521533a7e..5bb525b36b3 100644 --- a/tests/e2e/specs/activate-and-setup/setup-wizard.test.js +++ b/tests/e2e/specs/activate-and-setup/setup-wizard.test.js @@ -52,6 +52,9 @@ describe( 'Store owner can go through store Setup Wizard', () => { describe( 'Store owner can go through setup Task List', () => { it( 'can setup shipping', async () => { + await page.evaluate( () => { + document.querySelector( '.woocommerce-list__item-title' ).scrollIntoView(); + } ); // Query for all tasks on the list const taskListItems = await page.$$( '.woocommerce-list__item-title' ); expect( taskListItems ).toHaveLength( 6 );