Couple tweaks to make test run well on latest WC
This commit is contained in:
parent
88eb283713
commit
d72b29d4b7
|
@ -62,9 +62,9 @@ test.describe( 'Checkout Page', function() {
|
|||
assert.eventually.ok( Helper.waitTillUIBlockNotPresent( driver ) );
|
||||
|
||||
const orderReview = checkoutPage.components.orderReview;
|
||||
assertOrderItem( orderReview, 'Beanie', { qty: '1', total: '$18.00' } );
|
||||
assertOrderItem( orderReview, 'Long Sleeve Tee', { qty: '1', total: '$25.00' } );
|
||||
assert.eventually.ok( orderReview.hasSubtotal( '$43.00' ), 'Could not find subtotal $43.00' );
|
||||
assertOrderItem( orderReview, 'Beanie', { qty: '1', total: '18.00' } );
|
||||
assertOrderItem( orderReview, 'Long Sleeve Tee', { qty: '1', total: '25.00' } );
|
||||
assert.eventually.ok( orderReview.hasSubtotal( '43.00' ), 'Could not find subtotal 43.00' );
|
||||
} );
|
||||
|
||||
test.it( 'allows customer to choose available payment methods', () => {
|
||||
|
|
|
@ -33,7 +33,7 @@ test.describe( 'Single Product Page', function() {
|
|||
productPage.addToCart();
|
||||
|
||||
const cartPage = new CartPage( driver, { url: manager.getPageUrl( '/cart' ) } );
|
||||
assert.eventually.equal( cartPage.hasItem( 'Happy Ninja', { qty: 5 } ), true );
|
||||
assert.eventually.equal( cartPage.hasItem( 'T-Shirt', { qty: 5 } ), true );
|
||||
} );
|
||||
|
||||
test.it( 'should be able to add variation products to the cart', () => {
|
||||
|
|
Loading…
Reference in New Issue