Skip to content

Commit 376f391

Browse files
committed
refactor: remove redundant test case for add to cart
1 parent 9cfe1a3 commit 376f391

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

tests/specs/sauce-demo-all-pass.spec.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { test } from '@pagesetup';
21
import * as CheckoutPage from '@pages/sauce-demo/sauce-demo-checkout-page';
32
import * as LoginPage from '@pages/sauce-demo/sauce-demo-login-page';
43
import * as MiniCart from '@pages/sauce-demo/sauce-demo-mini-cart';
54
import * as ProductsPage from '@pages/sauce-demo/sauce-demo-products-page';
5+
import { test } from '@pagesetup';
66

77
/*
88
To run the tests in parallel, you can utilize the test.describe.configure() method to set the mode to 'parallel'.
@@ -31,14 +31,6 @@ test.describe('Saucedemo tests for successful, unsuccessful logins and add produ
3131
await ProductsPage.verifyProductsPageIsNotDisplayed();
3232
});
3333

34-
test('Saucedemo test - Add product to cart', async () => {
35-
await LoginPage.loginWithValidCredentials();
36-
await ProductsPage.verifyProductsPageIsDisplayed();
37-
await ProductsPage.addToCartByProductNumber(1);
38-
// verifying mini cart count is updated to 1
39-
await MiniCart.verifyMiniCartCount('1');
40-
});
41-
4234
test('Saucedemo test - Complete checkout flow', async () => {
4335
await LoginPage.loginWithValidCredentials();
4436
await ProductsPage.verifyProductsPageIsDisplayed();

0 commit comments

Comments
 (0)