Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
fix: ヘッダ部分が下にいった状態でスクリーンショットが撮られる不具合を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
book000 committed Dec 11, 2021
1 parent 1a4777d commit fad40eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/gen-page-preview/main.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ test("page screenshot", async ({ page }) => {
console.log("URL: " + url);
await page.goto(url, { waitUntil: "networkidle" });
await scrollFullPage(page);
await page.evaluate(() => {
window.scrollBy(0, -document.body.scrollHeight);
});
await page.screenshot({
path: "screenshots/" + file + ".png",
fullPage: true,
Expand Down

0 comments on commit fad40eb

Please sign in to comment.