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