Skip to content

Commit

Permalink
Scroll home screen tasks list into view for the click to work
Browse files Browse the repository at this point in the history
  • Loading branch information
juliaamosova committed Jul 17, 2020
1 parent 86311a9 commit 10bfb67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/e2e/specs/activate-and-setup/setup-wizard.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,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 );
Expand Down

0 comments on commit 10bfb67

Please sign in to comment.