* Fix colorscheme dark on success page due to embed not detected properly there * Use calNamespace in getEmbediframe * Fix missing variable * Update basic.e2e.ts --------- Co-authored-by: Omar López <zomars@me.com>
36 lines
1.2 KiB
TypeScript
36 lines
1.2 KiB
TypeScript
import { expect } from "@playwright/test";
|
|
|
|
import { test } from "@calcom/web/playwright/lib/fixtures";
|
|
|
|
import { bookFirstEvent, deleteAllBookingsByEmail, getEmbedIframe, todo } from "../lib/testUtils";
|
|
|
|
test("Inline Iframe - Configured with Dark Theme", async ({
|
|
page,
|
|
getActionFiredDetails,
|
|
addEmbedListeners,
|
|
}) => {
|
|
await deleteAllBookingsByEmail("embed-user@example.com");
|
|
await addEmbedListeners("");
|
|
await page.goto("/?only=ns:default");
|
|
const calNamespace = "";
|
|
const embedIframe = await getEmbedIframe({ calNamespace, page, pathname: "/pro" });
|
|
expect(embedIframe).toBeEmbedCalLink(calNamespace, getActionFiredDetails, {
|
|
pathname: "/pro",
|
|
searchParams: {
|
|
theme: "dark",
|
|
},
|
|
});
|
|
// expect(await page.screenshot()).toMatchSnapshot("event-types-list.png");
|
|
if (!embedIframe) {
|
|
throw new Error("Embed iframe not found");
|
|
}
|
|
await bookFirstEvent("pro", embedIframe, page);
|
|
await deleteAllBookingsByEmail("embed-user@example.com");
|
|
});
|
|
|
|
todo(
|
|
"Ensure that on all pages - [user], [user]/[type], team/[slug], team/[slug]/book, UI styling works if these pages are directly linked in embed"
|
|
);
|
|
|
|
todo("Check that UI Configuration doesn't work for Free Plan");
|