diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 041160c..a8accc9 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 'latest' - name: Install dependencies run: npm ci - name: Install Playwright Browsers diff --git a/tests/popup.spec.ts b/tests/popup.spec.ts index d8dd8f1..e6e7d8c 100644 --- a/tests/popup.spec.ts +++ b/tests/popup.spec.ts @@ -5,6 +5,7 @@ const uri = `file:${path.join(__dirname, "../examples/popup.html")}`; test("has title", async ({ page }) => { await page.goto(uri); + await page.setViewportSize({ width: 1960, height: 1080 }); await expect(page).toHaveTitle(/popup/); });