Critical flows: Shopper → Checkout → Can view empty checkout message (https://github.com/woocommerce/woocommerce-blocks/pull/6042)
* Added new test case for Critical flows: Shopper → Checkout → Can view empty checkout message
This commit is contained in:
parent
512ae84b09
commit
532952dd31
|
@ -0,0 +1,25 @@
|
|||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
import { shopper } from '../../../utils';
|
||||
|
||||
if ( process.env.WOOCOMMERCE_BLOCKS_PHASE < 2 )
|
||||
// eslint-disable-next-line jest/no-focused-tests
|
||||
test.only( `Skipping checkout tests`, () => {} );
|
||||
|
||||
describe( 'Shopper → Checkout → Can view empty checkout message', () => {
|
||||
beforeAll( async () => {
|
||||
await shopper.block.emptyCart();
|
||||
} );
|
||||
|
||||
it( 'Shopper can view empty cart message on the checkout page', async () => {
|
||||
await shopper.block.goToCheckout();
|
||||
// Verify cart is empty'
|
||||
await expect( page ).toMatchElement(
|
||||
'strong.wc-block-checkout-empty__title',
|
||||
{
|
||||
text: 'Your cart is empty!',
|
||||
}
|
||||
);
|
||||
} );
|
||||
} );
|
Loading…
Reference in New Issue