diff --git a/tests/e2e-tests/specs/activate-and-setup/setup-wizard.test.js b/tests/e2e-tests/specs/activate-and-setup/setup-wizard.test.js index 930630e636a..b2b2265158c 100644 --- a/tests/e2e-tests/specs/activate-and-setup/setup-wizard.test.js +++ b/tests/e2e-tests/specs/activate-and-setup/setup-wizard.test.js @@ -29,7 +29,7 @@ describe( 'Store owner can login and make sure WooCommerce is activated', () => } await page.click( `tr[data-slug="${ slug }"] .activate a` ); await page.waitForSelector( `tr[data-slug="${ slug }"] .deactivate a` ); - }); + } ); } ); diff --git a/tests/e2e-tests/specs/front-end/front-end-my-account.test.js b/tests/e2e-tests/specs/front-end/front-end-my-account.test.js index 713cbb45d61..517076047b8 100644 --- a/tests/e2e-tests/specs/front-end/front-end-my-account.test.js +++ b/tests/e2e-tests/specs/front-end/front-end-my-account.test.js @@ -3,13 +3,13 @@ */ /** - * External dependencies + * Internal dependencies */ -import { switchUserToTest } from '@wordpress/e2e-test-utils'; -import { CustomerFlow } from "../../utils/flows"; +import { CustomerFlow } from '../../utils/flows'; describe( 'My account page', () => { it( 'allows customer to login', async () => { + await CustomerFlow.login(); await expect( page ).toMatch( 'Hello' ); await expect( page ).toMatchElement( '.woocommerce-MyAccount-navigation-link', { text: 'Dashboard' } ); await expect( page ).toMatchElement( '.woocommerce-MyAccount-navigation-link', { text: 'Orders' } );