Remove waits and reorder test

This commit is contained in:
Veljko 2021-02-18 12:49:04 +01:00
parent 46655e83a2
commit eabee48a32
2 changed files with 4 additions and 4 deletions

View File

@ -51,13 +51,13 @@ const runMerchantTests = () => {
runAddSimpleProductTest();
runAddVariableProductTest();
runUpdateGeneralSettingsTest();
runAddNewShippingZoneTest();
runProductSettingsTest();
runTaxSettingsTest();
runOrderStatusFiltersTest();
runOrderRefundTest();
runOrderApplyCouponTest();
runMerchantOrdersCustomerPaymentPage();
runAddNewShippingZoneTest();
}
module.exports = {

View File

@ -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);