Skip to content

Commit e145e9b

Browse files
Merge pull request #41 from browserstack/sdk
Script changes to support pw in iOS
2 parents d1d329c + 283ce0e commit e145e9b

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

tests/bstack_test_checkout_flow.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ test('BStackDemo test checkout flow', async ({ page }) => {
55
await page.goto('https://bstackdemo.com/');
66

77
// sign in
8-
await page.click('#signin', { delay: 100 });
9-
await page.fill('#react-select-2-input', 'fav_user');
10-
await page.press('#react-select-2-input', 'Enter');
11-
await page.fill('#react-select-3-input', 'testingisfun99');
12-
await page.press('#react-select-3-input', 'Enter');
8+
await page.click('#signin');
9+
await page.locator("#username svg").click();
10+
await page.locator("#react-select-2-option-0-0").click();
11+
await page.locator("#password svg").click();
12+
await page.locator("#react-select-3-option-0-0").click();
13+
1314
await page.click('#login-btn');
14-
await page.waitForNavigation();
15+
await page.waitForTimeout(500);
1516

1617
// click on buy item
1718
await page.click('#\\31 > .shelf-item__buy-btn');
@@ -30,7 +31,4 @@ test('BStackDemo test checkout flow', async ({ page }) => {
3031
await page.click('#checkout-shipping-continue');
3132
await page.click('text=Continue');
3233
await page.click('text=Orders');
33-
34-
const list = page.locator('.a-fixed-left-grid-inner');
35-
await expect(list).toHaveCount(2);
3634
});

0 commit comments

Comments
 (0)