Skip to content

Commit

Permalink
test: expect no console errors in browser
Browse files Browse the repository at this point in the history
  • Loading branch information
pcattori committed Dec 11, 2024
1 parent ff303a5 commit 9758d98
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .tests/test.cloudflare-d1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,5 @@ async function workflow({ page, url }: { page: Page; url: string }) {

await page.goto(url);
await page.getByText(randomText).waitFor();
expect(page.errors).toStrictEqual([]);
}
1 change: 1 addition & 0 deletions .tests/test.cloudflare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ async function workflow({ page, url }: { page: Page; url: string }) {
await expect(page).toHaveTitle(/New React Router App/);
await page.getByRole("link", { name: "React Router Docs" }).waitFor();
await page.getByRole("link", { name: "Join Discord" }).waitFor();
expect(page.errors).toStrictEqual([]);
}
1 change: 1 addition & 0 deletions .tests/test.default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@ async function workflow({ page, url }: { page: Page; url: string }) {
await expect(page).toHaveTitle(/New React Router App/);
await page.getByRole("link", { name: "React Router Docs" }).waitFor();
await page.getByRole("link", { name: "Join Discord" }).waitFor();
expect(page.errors).toStrictEqual([]);
}
1 change: 1 addition & 0 deletions .tests/test.netlify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ async function workflow({ page, url }: { page: Page; url: string }) {
await expect(page).toHaveTitle(/New React Router App/);
await page.getByRole("link", { name: "React Router Docs" }).waitFor();
await page.getByRole("link", { name: "Join Discord" }).waitFor();
expect(page.errors).toStrictEqual([]);
}
1 change: 1 addition & 0 deletions .tests/test.node-custom-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@ async function workflow({ page, url }: { page: Page; url: string }) {
await expect(page).toHaveTitle(/New React Router App/);
await page.getByRole("link", { name: "React Router Docs" }).waitFor();
await page.getByRole("link", { name: "Join Discord" }).waitFor();
expect(page.errors).toStrictEqual([]);
}
1 change: 1 addition & 0 deletions .tests/test.vercel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ async function workflow({ page, url }: { page: Page; url: string }) {
await expect(page).toHaveTitle(/New React Router App/);
await page.getByRole("link", { name: "React Router Docs" }).waitFor();
await page.getByRole("link", { name: "Join Discord" }).waitFor();
expect(page.errors).toStrictEqual([]);
}

0 comments on commit 9758d98

Please sign in to comment.