Skip to content

Commit 4a1f0dc

Browse files
authored
Merge branch 'main' into update-docs-links
2 parents 85c30b8 + 470ef73 commit 4a1f0dc

40 files changed

Lines changed: 24 additions & 24 deletions

File tree

packages/embeds/embed-core/playwright/lib/testUtils.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ async function selectFirstAvailableTimeSlotNextMonth(frame: Frame, page: Page) {
8484

8585
// Waiting for full month increment
8686
await frame.waitForTimeout(1000);
87-
expect(await page.screenshot()).toMatchSnapshot("availability-page-2.png");
87+
// expect(await page.screenshot()).toMatchSnapshot("availability-page-2.png");
8888
// TODO: Find out why the first day is always booked on tests
8989
await frame.locator('[data-testid="day"][data-disabled="false"]').nth(1).click();
9090
await frame.click('[data-testid="time"]');
@@ -104,15 +104,15 @@ export async function bookFirstEvent(username: string, frame: Frame, page: Page)
104104
// This doesn't seem to be replicable with the speed of a person, only during automation.
105105
// It would also allow correct snapshot to be taken for current month.
106106
await frame.waitForTimeout(1000);
107-
expect(await page.screenshot()).toMatchSnapshot("availability-page-1.png");
107+
// expect(await page.screenshot()).toMatchSnapshot("availability-page-1.png");
108108
const eventSlug = new URL(frame.url()).pathname;
109109
await selectFirstAvailableTimeSlotNextMonth(frame, page);
110110
await frame.waitForNavigation({
111111
url(url) {
112112
return url.pathname.includes(`/${username}/book`);
113113
},
114114
});
115-
expect(await page.screenshot()).toMatchSnapshot("booking-page.png");
115+
// expect(await page.screenshot()).toMatchSnapshot("booking-page.png");
116116
// --- fill form
117117
await frame.fill('[name="name"]', "Embed User");
118118
await frame.fill('[name="email"]', "embed-user@example.com");
@@ -123,7 +123,7 @@ export async function bookFirstEvent(username: string, frame: Frame, page: Page)
123123

124124
// Make sure we're navigated to the success page
125125
await expect(frame.locator("[data-testid=success-page]")).toBeVisible();
126-
expect(await page.screenshot()).toMatchSnapshot("success-page.png");
126+
// expect(await page.screenshot()).toMatchSnapshot("success-page.png");
127127

128128
//NOTE: frame.click('body') won't work here. Because the way it works, it clicks on the center of the body tag which is an element inside the popup view and that won't close the popup
129129
await frame.evaluate(() => {

packages/embeds/embed-core/playwright/tests/action-based.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ test.describe("Popup Tests", () => {
6868
await expect(embedIframe).toBeEmbedCalLink(calNamespace, getActionFiredDetails, {
6969
pathname: "/free",
7070
});
71-
expect(await page.screenshot()).toMatchSnapshot("event-types-list.png");
71+
// expect(await page.screenshot()).toMatchSnapshot("event-types-list.png");
7272
if (!embedIframe) {
7373
throw new Error("Embed iframe not found");
7474
}

0 commit comments

Comments
 (0)