Skip to content

Commit 3474a56

Browse files
committed
[imp] clean tests
1 parent d30667c commit 3474a56

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/bstack_local_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const { expect, test } = require('@playwright/test');
2-
const sleep = require('util').promisify(setTimeout)
2+
33
test('BStack local is working', async ({ page }) => {
44
await page.goto('http://bs-local.com:45454/');
55
const title = await page.title();

tests/bstack_test_add_to_cart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ test('BStackDemo test add to cart', async ({ page }) => {
1212

1313
// get name of item in cart
1414
const productInCart = await page.textContent('#__next > div > div > div.float-cart.float-cart--open > div.float-cart__content > div.float-cart__shelf-container > div > div.shelf-item__details > p.title');
15-
15+
1616
// check if product in cart is same as one added
1717
expect(productInCart).toEqual(productToAdd);
1818
});

tests/bstack_test_checkout_flow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { expect, test } = require('@playwright/test');
1+
const { test } = require('@playwright/test');
22

33
test('BStackDemo test checkout flow', async ({ page }) => {
44
// visit the site

0 commit comments

Comments
 (0)