Skip to content

Commit

Permalink
Fix screenshot path
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlul committed Jun 11, 2024
1 parent 7aaf587 commit 9f930a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- run: yarn
- run: yarn playwright install --with-deps
- run: node .
Expand Down
6 changes: 3 additions & 3 deletions index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ import { PlaywrightBlocker } from "@cliqz/adblocker-playwright";
// omitBackground not supported in Firefox
await page.locator("#piechart-container").screenshot({ path, omitBackground: true });
}
await screenshot("top-chart-tcg.png");
await screenshot("_site/top-chart-tcg.png");
await page.getByLabel("Format Menu").click();
await page.getByLabel("Format Menu").selectOption("OCG");
await screenshot("top-chart-ocg.png");
await screenshot("_site/top-chart-ocg.png");
await page.getByLabel("Format Menu").click();
await page.getByLabel("Format Menu").selectOption("OCG-AE");
await screenshot("top-chart-ocg-ae.png");
await screenshot("_site/top-chart-ocg-ae.png");
await context.close();
await browser.close();
})();

0 comments on commit 9f930a8

Please sign in to comment.