chore: [app-router-migration 14] migrate not-found page (#13032)
* chore: migrate not-found page * migrate page, replace ssgInit * fix flaky test * fix * fix * fix
This commit is contained in:
1 parent
0bdc45a1a5
commit
abd90f6af8
9 files changed
+41
-9
No files matched your search
@@ -435,7 +435,7 @@ test.describe("Reschedule for booking with seats", () => {
|
||||
|
||||
await page.locator('[data-testid="confirm_cancel"]').click();
|
||||
|
||||
await page.waitForLoadState("networkidle");
|
||||
await page.waitForResponse((res) => res.url().includes("api/cancel") && res.status() === 200);
|
||||
|
||||
const oldBooking = await prisma.booking.findFirst({
|
||||
where: { uid: booking.uid },
|
||||
|
||||
@@ -360,5 +360,5 @@ export async function doOnOrgDomain(
|
||||
}
|
||||
|
||||
// When App directory is there, this is the 404 page text. We should work on fixing the 404 page as it changed due to app directory.
|
||||
export const NotFoundPageText = "This page could not be found";
|
||||
export const NotFoundPageTextAppDir = "This page does not exist.";
|
||||
// export const NotFoundPageText = "ERROR 404";
|
||||
@@ -6,7 +6,7 @@ import { MembershipRole, SchedulingType } from "@calcom/prisma/enums";
|
||||
|
||||
import { test } from "./lib/fixtures";
|
||||
import {
|
||||
NotFoundPageText,
|
||||
NotFoundPageTextAppDir,
|
||||
bookTimeSlot,
|
||||
doOnOrgDomain,
|
||||
fillStripeTestCheckout,
|
||||
@@ -40,7 +40,7 @@ test.describe("Teams A/B tests", () => {
|
||||
|
||||
expect(dataNextJsRouter).toEqual("app");
|
||||
|
||||
const locator = page.getByRole("heading", { name: "teams" });
|
||||
const locator = page.getByRole("heading", { name: "Teams", exact: true });
|
||||
|
||||
await expect(locator).toBeVisible();
|
||||
});
|
||||
@@ -389,7 +389,7 @@ test.describe("Teams - Org", () => {
|
||||
|
||||
await page.goto(`/team/${team.slug}/${teamEventSlug}`);
|
||||
|
||||
await expect(page.locator(`text=${NotFoundPageText}`)).toBeVisible();
|
||||
await expect(page.locator(`text=${NotFoundPageTextAppDir}`)).toBeVisible();
|
||||
await doOnOrgDomain(
|
||||
{
|
||||
orgSlug: org.slug,
|
||||
|
||||
Reference in new issue
Block a user