Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions tests/bstack_test_checkout_flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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);
});