Remove waits and reorder test
This commit is contained in:
parent
46655e83a2
commit
eabee48a32
|
@ -51,13 +51,13 @@ const runMerchantTests = () => {
|
|||
runAddSimpleProductTest();
|
||||
runAddVariableProductTest();
|
||||
runUpdateGeneralSettingsTest();
|
||||
runAddNewShippingZoneTest();
|
||||
runProductSettingsTest();
|
||||
runTaxSettingsTest();
|
||||
runOrderStatusFiltersTest();
|
||||
runOrderRefundTest();
|
||||
runOrderApplyCouponTest();
|
||||
runMerchantOrdersCustomerPaymentPage();
|
||||
runAddNewShippingZoneTest();
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
|
|
@ -68,7 +68,7 @@ const runAddNewShippingZoneTest = () => {
|
|||
|
||||
// Verify shipping costs
|
||||
await page.waitForSelector('.order-total');
|
||||
await expect(page).toMatchElement('.shipping .amount', {text: '$10.00'}, 2000);
|
||||
await expect(page).toMatchElement('.shipping .amount', {text: '$10.00'});
|
||||
await expect(page).toMatchElement('.order-total .amount', {text: '$19.99'});
|
||||
|
||||
await shopper.removeFromCart(simpleProductName);
|
||||
|
@ -91,7 +91,7 @@ const runAddNewShippingZoneTest = () => {
|
|||
// Verify shipping method and cost
|
||||
await page.waitForSelector('.order-total');
|
||||
await expect(page).toMatchElement('.shipping ul#shipping_method > li', {text: 'Free shipping'});
|
||||
await expect(page).toMatchElement('.order-total .amount', {text: '$9.99'}, 2000);
|
||||
await expect(page).toMatchElement('.order-total .amount', {text: '$9.99'});
|
||||
|
||||
await shopper.removeFromCart(simpleProductName);
|
||||
})
|
||||
|
@ -108,7 +108,7 @@ const runAddNewShippingZoneTest = () => {
|
|||
|
||||
// Verify shipping method and cost
|
||||
await page.waitForSelector('.order-total');
|
||||
await expect(page).toMatchElement('.shipping ul#shipping_method > li', {text: 'Local pickup'}, 2000);
|
||||
await expect(page).toMatchElement('.shipping ul#shipping_method > li', {text: 'Local pickup'});
|
||||
await expect(page).toMatchElement('.order-total .amount', {text: '$9.99'});
|
||||
|
||||
await shopper.removeFromCart(simpleProductName);
|
||||
|
|
Loading…
Reference in New Issue