Couple tweaks to make test run well on latest WC

This commit is contained in:
claudiulodro 2017-10-31 13:36:01 -07:00
parent 88eb283713
commit d72b29d4b7
2 changed files with 4 additions and 4 deletions

View File

@ -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', () => {

View File

@ -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', () => {