diff --git a/tests/bstack_test_checkout_flow.js b/tests/bstack_test_checkout_flow.js index ece0b42..6f042ae 100644 --- a/tests/bstack_test_checkout_flow.js +++ b/tests/bstack_test_checkout_flow.js @@ -5,13 +5,14 @@ test('BStackDemo test checkout flow', async ({ page }) => { await page.goto('https://bstackdemo.com/'); // sign in - await page.click('#signin', { delay: 100 }); - await page.fill('#react-select-2-input', 'fav_user'); - await page.press('#react-select-2-input', 'Enter'); - await page.fill('#react-select-3-input', 'testingisfun99'); - await page.press('#react-select-3-input', 'Enter'); + await page.click('#signin'); + await page.locator("#username svg").click(); + await page.locator("#react-select-2-option-0-0").click(); + await page.locator("#password svg").click(); + await page.locator("#react-select-3-option-0-0").click(); + await page.click('#login-btn'); - await page.waitForNavigation(); + await page.waitForTimeout(500); // click on buy item await page.click('#\\31 > .shelf-item__buy-btn'); @@ -30,7 +31,4 @@ test('BStackDemo test checkout flow', async ({ page }) => { await page.click('#checkout-shipping-continue'); await page.click('text=Continue'); await page.click('text=Orders'); - - const list = page.locator('.a-fixed-left-grid-inner'); - await expect(list).toHaveCount(2); });