Skip to content

Commit

Permalink
fixing flakey test?
Browse files Browse the repository at this point in the history
  • Loading branch information
Duncanma committed May 21, 2024
1 parent e3fa74e commit 317eb18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/minimum.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ async function visualDiffAlbum(page: Page, url: string, testInfo: TestInfo) {
await expect(page).toHaveScreenshot(screenshot, { fullPage: true, timeout: 50000, stylePath: "tests/screenshot.css"});

screenshot = testInfo.title + "purchase.png";
page.click("#gallery > div.availableForPurchase");
page.waitForSelector("body.showBuyButtons");
await page.click("#gallery > div.availableForPurchase");
await page.waitForSelector("body.showBuyButtons");
await expect(page).toHaveScreenshot(screenshot, { fullPage: true, timeout: 50000, stylePath: "tests/screenshot.css"});
}

Expand Down

0 comments on commit 317eb18

Please sign in to comment.