2022-03-10 11:50:07 +00:00
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
|
|
|
import { shopper } from '../../../utils';
|
|
|
|
|
2022-03-29 15:05:11 +00:00
|
|
|
if ( process.env.WOOCOMMERCE_BLOCKS_PHASE < 2 ) {
|
2022-03-10 11:50:07 +00:00
|
|
|
// eslint-disable-next-line jest/no-focused-tests
|
|
|
|
test.only( `skipping ${ block.name } tests`, () => {} );
|
2022-03-29 15:05:11 +00:00
|
|
|
}
|
2022-03-10 11:50:07 +00:00
|
|
|
|
|
|
|
describe( 'Shopper → Cart → Can view empty cart message', () => {
|
|
|
|
beforeAll( async () => {
|
|
|
|
await shopper.block.emptyCart();
|
|
|
|
} );
|
|
|
|
|
|
|
|
it( 'Shopper Can view empty cart message', async () => {
|
|
|
|
await shopper.block.goToCart();
|
|
|
|
|
|
|
|
// Verify cart is empty'
|
|
|
|
await expect( page ).toMatchElement( 'h2', {
|
|
|
|
text: 'Your cart is currently empty!',
|
|
|
|
} );
|
|
|
|
} );
|
|
|
|
} );
|