Fix customer login on My Account page

This commit is contained in:
Julia Amosova 2019-11-28 16:33:43 +00:00
parent d65c3c76c3
commit 9d219dc5e0
2 changed files with 4 additions and 4 deletions

View File

@ -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` );
});
} );
} );

View File

@ -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' } );