chore: [app-router-migration-6] bookings/[status] page (#12621)

Co-authored-by: zomars <[email protected]>
This commit is contained in:
DmytroHryshynandzomars authored and GitHub committed 2023-12-19 19:57:18 +00:00
1 parent 27ce5e7808
commit 4b3ad579c8
8 files changed
+91

No files matched your search

@@ -139,4 +139,31 @@ test.describe("apps/ A/B tests", () => {
await expect(locator).toBeVisible();
});
test("should point to the /future/bookings/[status]", async ({ page, users, context }) => {
await context.addCookies([
{
name: "x-calcom-future-routes-override",
value: "1",
url: "http://localhost:3000",
},
]);
const user = await users.create();
await user.apiLogin();
await page.goto("/bookings/upcoming/");
await page.waitForLoadState();
const dataNextJsRouter = await page.evaluate(() =>
window.document.documentElement.getAttribute("data-nextjs-router")
);
expect(dataNextJsRouter).toEqual("app");
const locator = page.getByTestId("horizontal-tab-upcoming");
await expect(locator).toHaveClass(/bg-emphasis/);
});
});