Skip to content

Commit

Permalink
test: add e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Jun 30, 2024
1 parent 33456a2 commit 44df456
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/react-server/examples/next/e2e/basic.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,11 @@ test("favicon.ico", async ({ request }) => {
expect(res.status()).toBe(200);
expect(res.headers()["content-type"]).toBe("image/x-icon");
});

test("viewport", async ({ page }) => {
await page.goto("/");
await expect(page.locator(`meta[name="viewport"]`)).toHaveAttribute(
"content",
"width=device-width, initial-scale=1",
);
});

0 comments on commit 44df456

Please sign in to comment.