Merge pull request #29776 from woocommerce/e2e/coupon-test-names

give cart and checkout coupon tests unique titles
This commit is contained in:
Greg 2021-04-29 12:03:16 -06:00 committed by GitHub
commit 3aca2b9248
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 11 deletions

View File

@ -41,7 +41,7 @@ const runCartApplyCouponsTest = () => {
await shopper.goToCart();
});
it('allows customer to apply fixed cart coupon', async () => {
it('allows cart to apply fixed cart coupon', async () => {
await applyCoupon(couponFixedCart);
await expect(page).toMatchElement('.woocommerce-message', {text: 'Coupon code applied successfully.'});
@ -52,7 +52,7 @@ const runCartApplyCouponsTest = () => {
await removeCoupon(couponFixedCart);
});
it('allows customer to apply percentage coupon', async () => {
it('allows cart to apply percentage coupon', async () => {
await applyCoupon(couponPercentage);
await expect(page).toMatchElement('.woocommerce-message', {text: 'Coupon code applied successfully.'});
@ -63,7 +63,7 @@ const runCartApplyCouponsTest = () => {
await removeCoupon(couponPercentage);
});
it('allows customer to apply fixed product coupon', async () => {
it('allows cart to apply fixed product coupon', async () => {
await applyCoupon(couponFixedProduct);
await expect(page).toMatchElement('.woocommerce-message', {text: 'Coupon code applied successfully.'});
@ -74,7 +74,7 @@ const runCartApplyCouponsTest = () => {
await removeCoupon(couponFixedProduct);
});
it('prevents customer applying same coupon twice', async () => {
it('prevents cart applying same coupon twice', async () => {
await applyCoupon(couponFixedCart);
await expect(page).toMatchElement('.woocommerce-message', {text: 'Coupon code applied successfully.'});
await applyCoupon(couponFixedCart);
@ -84,7 +84,7 @@ const runCartApplyCouponsTest = () => {
await expect(page).toMatchElement('.order-total .amount', {text: '$4.99'});
});
it('allows customer to apply multiple coupons', async () => {
it('allows cart to apply multiple coupons', async () => {
await applyCoupon(couponFixedProduct);
await expect(page).toMatchElement('.woocommerce-message', {text: 'Coupon code applied successfully.'});

View File

@ -41,7 +41,7 @@ const runCheckoutApplyCouponsTest = () => {
await shopper.goToCheckout();
});
it('allows customer to apply fixed cart coupon', async () => {
it('allows checkout to apply fixed cart coupon', async () => {
await applyCoupon(couponFixedCart);
await expect(page).toMatchElement('.woocommerce-message', {text: 'Coupon code applied successfully.'});
@ -54,7 +54,7 @@ const runCheckoutApplyCouponsTest = () => {
await removeCoupon(couponFixedCart);
});
it('allows customer to apply percentage coupon', async () => {
it('allows checkout to apply percentage coupon', async () => {
await applyCoupon(couponPercentage);
await expect(page).toMatchElement('.woocommerce-message', {text: 'Coupon code applied successfully.'});
@ -64,7 +64,7 @@ const runCheckoutApplyCouponsTest = () => {
await removeCoupon(couponPercentage);
});
it('allows customer to apply fixed product coupon', async () => {
it('allows checkout to apply fixed product coupon', async () => {
await applyCoupon(couponFixedProduct);
await expect(page).toMatchElement('.woocommerce-message', {text: 'Coupon code applied successfully.'});
@ -75,7 +75,7 @@ const runCheckoutApplyCouponsTest = () => {
await removeCoupon(couponFixedProduct);
});
it('prevents customer applying same coupon twice', async () => {
it('prevents checkout applying same coupon twice', async () => {
await applyCoupon(couponFixedCart);
await expect(page).toMatchElement('.woocommerce-message', {text: 'Coupon code applied successfully.'});
await applyCoupon(couponFixedCart);
@ -85,7 +85,7 @@ const runCheckoutApplyCouponsTest = () => {
await expect(page).toMatchElement('.order-total .amount', {text: '$4.99'});
});
it('allows customer to apply multiple coupons', async () => {
it('allows checkout to apply multiple coupons', async () => {
await applyCoupon(couponFixedProduct);
await expect(page).toMatchElement('.woocommerce-message', {text: 'Coupon code applied successfully.'});
@ -94,7 +94,7 @@ const runCheckoutApplyCouponsTest = () => {
await expect(page).toMatchElement('.order-total .amount', {text: '$0.00'});
});
it('restores cart total when coupons are removed', async () => {
it('restores checkout total when coupons are removed', async () => {
await removeCoupon(couponFixedCart);
await removeCoupon(couponFixedProduct);
await expect(page).toMatchElement('.order-total .amount', {text: '$9.99'});