chore: [app-router-migration-5] apps/installed page (#12618)

Co-authored-by: zomars <[email protected]>
This commit is contained in:
DmytroHryshynandzomars authored and GitHub committed 2023-12-12 12:48:40 -07:00
1 parent add6ffdfc4
commit a568e1ac66
9 files changed
+107

No files matched your search

@@ -5,6 +5,33 @@ import { test } from "./lib/fixtures";
test.describe.configure({ mode: "parallel" });
test.describe("apps/ A/B tests", () => {
test("should point to the /future/apps/installed/[category]", 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("/apps/installed/messaging");
await page.waitForLoadState();
const dataNextJsRouter = await page.evaluate(() =>
window.document.documentElement.getAttribute("data-nextjs-router")
);
expect(dataNextJsRouter).toEqual("app");
const locator = page.getByRole("heading", { name: "Messaging" });
await expect(locator).toBeVisible();
});
test("should point to the /future/apps/[slug]", async ({ page, users, context }) => {
await context.addCookies([
{