Skip to content

Commit

Permalink
fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
conico974 committed Jun 27, 2024
1 parent c273b0a commit 31665dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/pages-router/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ const nextConfig = {
],
},
],
redirects: [
redirects: () => [
{
source: "/next-config-redirect-without-locale-support",
source: "/next-config-redirect-without-locale-support/",
destination: "https://open-next.js.org/",
permanent: false,
basePath: false,
Expand Down
3 changes: 2 additions & 1 deletion packages/tests-e2e/tests/pagesRouter/redirect.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { expect, test } from "@playwright/test";
test("Single redirect", async ({ page }) => {
await page.goto("/next-config-redirect-without-locale-support/");

let el = page.getByText("Open source Next.js adapter");
await page.waitForURL("https://open-next.js.org/");
let el = page.getByRole("heading", { name: "Open source Next.js adapter" });
await expect(el).toBeVisible();
});

0 comments on commit 31665dc

Please sign in to comment.