refactor: Refactor seats logic #16642
pr.yml
on: pull_request_target
Detect changes
13s
login
2s
Production build (without database)
/
Build
9m 43s
Matrix: E2E App Store tests / e2e-app-store
Matrix: E2E React embeds tests / e2e-embed
Matrix: E2E embeds tests / e2e-embed
Matrix: E2E tests / e2e
Analyze Build
/
analyze
1m 51s
required
3s
Annotations
20 errors and 10 notices
[@calcom/embed-core] › packages/embeds/embed-core/playwright/tests/inline.e2e.ts:8:7 › Inline Iframe › Inline Iframe - Configured with Dark Theme:
packages/embeds/embed-core/playwright/tests/inline.e2e.ts#L25
1) [@***com/embed-core] › packages/embeds/embed-core/playwright/tests/inline.e2e.ts:8:7 › Inline Iframe › Inline Iframe - Configured with Dark Theme
Error: Embed iframe not found
23 | // expect(await page.screenshot()).toMatchSnapshot("event-types-list.png");
24 | if (!embedIframe) {
> 25 | throw new Error("Embed iframe not found");
| ^
26 | }
27 | await bookFirstEvent("pro", embedIframe, page);
28 | await deleteAllBookingsByEmail("[email protected]");
at /home/runner/actions-runner/_work/***.com/***.com/packages/embeds/embed-core/playwright/tests/inline.e2e.ts:25:13
|
[@calcom/embed-core] › packages/embeds/embed-core/playwright/tests/inline.e2e.ts:8:7 › Inline Iframe › Inline Iframe - Configured with Dark Theme:
packages/embeds/embed-core/playwright/tests/inline.e2e.ts#L1
1) [@***com/embed-core] › packages/embeds/embed-core/playwright/tests/inline.e2e.ts:8:7 › Inline Iframe › Inline Iframe - Configured with Dark Theme
Test timeout of 60000ms exceeded while tearing down "context".
|
[@calcom/embed-core] › packages/embeds/embed-core/playwright/tests/action-based.e2e.ts:54:7 › Popup Tests › should open embed iframe on click - Configured with light theme:
packages/embeds/embed-core/playwright/tests/action-based.e2e.ts#L63
1) [@***com/embed-core] › packages/embeds/embed-core/playwright/tests/action-based.e2e.ts:54:7 › Popup Tests › should open embed iframe on click - Configured with light theme
Error: Expected to provide an iframe, got null
61 | const embedIframe = await getEmbedIframe({ ***Namespace, page, pathname: "/free" });
62 |
> 63 | await expect(embedIframe).toBeEmbedCalLink(***Namespace, embeds.getActionFiredDetails, {
| ^
64 | pathname: "/free",
65 | });
66 | // expect(await page.screenshot()).toMatchSnapshot("event-types-list.png");
at /home/runner/actions-runner/_work/***.com/***.com/packages/embeds/embed-core/playwright/tests/action-based.e2e.ts:63:31
|
[@calcom/embed-core] › packages/embeds/embed-core/playwright/tests/action-based.e2e.ts:78:7 › Popup Tests › should be able to reschedule:
packages/embeds/embed-core/playwright/tests/action-based.e2e.ts#L38
2) [@***com/embed-core] › packages/embeds/embed-core/playwright/tests/action-based.e2e.ts:78:7 › Popup Tests › should be able to reschedule
Error: Expected to provide an iframe, got null
36 | const embedIframe = await getEmbedIframe({ ***Namespace, page, pathname: "/free" });
37 |
> 38 | await expect(embedIframe).toBeEmbedCalLink(***Namespace, getActionFiredDetails, {
| ^
39 | pathname: "/free",
40 | });
41 | if (!embedIframe) {
at bookFirstFreeUserEventThroughEmbed (/home/runner/actions-runner/_work/***.com/***.com/packages/embeds/embed-core/playwright/tests/action-based.e2e.ts:38:29)
at /home/runner/actions-runner/_work/***.com/***.com/packages/embeds/embed-core/playwright/tests/action-based.e2e.ts:83:14
at /home/runner/actions-runner/_work/***.com/***.com/packages/embeds/embed-core/playwright/tests/action-based.e2e.ts:82:21
|
[@calcom/embed-core] › packages/embeds/embed-core/playwright/tests/action-based.e2e.ts:78:7 › Popup Tests › should be able to reschedule:
packages/embeds/embed-core/playwright/lib/testUtils.ts#L158
2) [@***com/embed-core] › packages/embeds/embed-core/playwright/tests/action-based.e2e.ts:78:7 › Popup Tests › should be able to reschedule
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 30000ms waiting for expect(received).toBeVisible()
Call log:
- expect.toBeVisible with timeout 30000ms
- waiting for locator('[data-testid=success-page]')
- waiting for locator('[data-testid=success-page]')
at packages/embeds/embed-core/playwright/lib/testUtils.ts:158
156 | const booking = responseObj.uid;
157 | // Make sure we're navigated to the success page
> 158 | await expect(frame.locator("[data-testid=success-page]")).toBeVisible();
| ^
159 | return booking;
160 | }
161 |
at rescheduleEvent (/home/runner/actions-runner/_work/***.com/***.com/packages/embeds/embed-core/playwright/lib/testUtils.ts:158:61)
at /home/runner/actions-runner/_work/***.com/***.com/packages/embeds/embed-core/playwright/tests/action-based.e2e.ts:99:7
at /home/runner/actions-runner/_work/***.com/***.com/packages/embeds/embed-core/playwright/tests/action-based.e2e.ts:90:5
|
[@calcom/embed-core] › packages/embeds/embed-core/playwright/tests/action-based.e2e.ts:105:7 › Popup Tests › should open Routing Forms embed on click:
packages/embeds/embed-core/playwright/tests/action-based.e2e.ts#L129
3) [@***com/embed-core] › packages/embeds/embed-core/playwright/tests/action-based.e2e.ts:105:7 › Popup Tests › should open Routing Forms embed on click
Error: Routing Form embed iframe not found
127 | });
128 | if (!embedIframe) {
> 129 | throw new Error("Routing Form embed iframe not found");
| ^
130 | }
131 | await expect(embedIframe).toBeEmbedCalLink(***Namespace, getActionFiredDetails, {
132 | pathname: "/forms/948ae412-d995-4865-875a-48302588de03",
at /home/runner/actions-runner/_work/***.com/***.com/packages/embeds/embed-core/playwright/tests/action-based.e2e.ts:129:13
|
[@calcom/embed-core] › packages/embeds/embed-core/playwright/tests/action-based.e2e.ts:139:11 › Popup Tests › Floating Button Popup › Pro User - Configured in App with default setting of system theme › should open embed iframe according to system theme when no theme is configured through Embed API:
packages/embeds/embed-core/playwright/tests/action-based.e2e.ts#L1
4) [@***com/embed-core] › packages/embeds/embed-core/playwright/tests/action-based.e2e.ts:139:11 › Popup Tests › Floating Button Popup › Pro User - Configured in App with default setting of system theme › should open embed iframe according to system theme when no theme is configured through Embed API
Test timeout of 60000ms exceeded.
|
[@calcom/embed-core] › packages/embeds/embed-core/playwright/tests/action-based.e2e.ts:139:11 › Popup Tests › Floating Button Popup › Pro User - Configured in App with default setting of system theme › should open embed iframe according to system theme when no theme is configured through Embed API:
packages/embeds/embed-core/playwright/tests/action-based.e2e.ts#L147
4) [@***com/embed-core] › packages/embeds/embed-core/playwright/tests/action-based.e2e.ts:139:11 › Popup Tests › Floating Button Popup › Pro User - Configured in App with default setting of system theme › should open embed iframe according to system theme when no theme is configured through Embed API
page.click: Target closed
=========================== logs ===========================
waiting for locator('[data-***-namespace="floatingButton"] > button')
============================================================
145 | await page.goto("/?only=ns:floatingButton");
146 |
> 147 | await page.click('[data-***-namespace="floatingButton"] > button');
| ^
148 |
149 | const embedIframe = await getEmbedIframe({ ***Namespace, page, pathname: "/pro" });
150 | await expect(embedIframe).toBeEmbedCalLink(***Namespace, getActionFiredDetails, {
at /home/runner/actions-runner/_work/***.com/***.com/packages/embeds/embed-core/playwright/tests/action-based.e2e.ts:147:20
|
[@calcom/embed-core] › packages/embeds/embed-core/playwright/tests/action-based.e2e.ts:139:11 › Popup Tests › Floating Button Popup › Pro User - Configured in App with default setting of system theme › should open embed iframe according to system theme when no theme is configured through Embed API:
packages/embeds/embed-core/playwright/tests/action-based.e2e.ts#L1
4) [@***com/embed-core] › packages/embeds/embed-core/playwright/tests/action-based.e2e.ts:139:11 › Popup Tests › Floating Button Popup › Pro User - Configured in App with default setting of system theme › should open embed iframe according to system theme when no theme is configured through Embed API
Pending operations:
- page.click at packages/embeds/embed-core/playwright/tests/action-based.e2e.ts:147:20
|
[@calcom/app-store] › packages/app-store/routing-forms/playwright/tests/basic.e2e.ts:299:9 › Routing Forms › Seeded Routing Form › Router URL should work:
packages/app-store/routing-forms/playwright/tests/basic.e2e.ts#L310
1) [@***com/app-store] › packages/app-store/routing-forms/playwright/tests/basic.e2e.ts:299:9 › Routing Forms › Seeded Routing Form › Router URL should work
page.goto: Navigation interrupted by another one
=========================== logs ===========================
navigating to "http://lo***host:3000/router?form=clrfgcgs90000jx9m697o867v&Test%20field=external-redirect", waiting until "load"
============================================================
308 | });
309 |
> 310 | page.goto(`/router?form=${routingForm.id}&Test field=external-redirect`);
| ^
311 | await page.waitForURL((url) => {
312 | return (
313 | url.hostname.includes("google.com") && url.searchParams.get("Test field") === "external-redirect"
at /home/runner/actions-runner/_work/***.com/***.com/packages/app-store/routing-forms/playwright/tests/basic.e2e.ts:310:12
|
[@calcom/app-store] › packages/app-store/routing-forms/playwright/tests/basic.e2e.ts:299:9 › Routing Forms › Seeded Routing Form › Router URL should work:
packages/app-store/routing-forms/playwright/tests/basic.e2e.ts#L1
1) [@***com/app-store] › packages/app-store/routing-forms/playwright/tests/basic.e2e.ts:299:9 › Routing Forms › Seeded Routing Form › Router URL should work
Test timeout of 60000ms exceeded.
|
[@calcom/app-store] › packages/app-store/routing-forms/playwright/tests/basic.e2e.ts:299:9 › Routing Forms › Seeded Routing Form › Router URL should work:
packages/app-store/routing-forms/playwright/tests/basic.e2e.ts#L1
1) [@***com/app-store] › packages/app-store/routing-forms/playwright/tests/basic.e2e.ts:299:9 › Routing Forms › Seeded Routing Form › Router URL should work
Pending operations:
- page.goto at packages/app-store/routing-forms/playwright/tests/basic.e2e.ts:317:18
|
[@calcom/web] › apps/web/playwright/organization/organization-invitation.e2e.ts:251:9 › Organization › Email matching orgAutoAcceptEmail and a Verified Organization › Team Invitation:
apps/web/playwright/organization/organization-invitation.e2e.ts#L398
1) [@***com/web] › apps/web/playwright/organization/organization-invitation.e2e.ts:251:9 › Organization › Email matching orgAutoAcceptEmail and a Verified Organization › Team Invitation
Error: expect(received).toBe(expected) // Object.is equality
Expected: "rick-6a8582d4"
Received: ""
396 | await signupPage.locator(`[data-testid="signup-usernamefield"]`).waitFor({ state: "visible" });
397 | await expect(signupPage.locator(`[data-testid="signup-usernamefield"]`)).toBeDisabled();
> 398 | expect(await signupPage.locator(`[data-testid="signup-usernamefield"]`).inputValue()).toBe(
| ^
399 | expectedUsername
400 | );
401 | await expect(signupPage.locator(`[data-testid="signup-emailfield"]`)).toBeDisabled();
at signupFromEmailInviteLink (/home/runner/actions-runner/_work/***.com/***.com/apps/web/playwright/organization/organization-invitation.e2e.ts:398:89)
at /home/runner/actions-runner/_work/***.com/***.com/apps/web/playwright/organization/organization-invitation.e2e.ts:295:9
at /home/runner/actions-runner/_work/***.com/***.com/apps/web/playwright/organization/organization-invitation.e2e.ts:263:7
|
[@calcom/web] › apps/web/playwright/login.2fa.e2e.ts:21:7 › 2FA Tests › should allow a user to enable 2FA and login using 2FA:
apps/web/playwright/login.2fa.e2e.ts#L1
1) [@***com/web] › apps/web/playwright/login.2fa.e2e.ts:21:7 › 2FA Tests › should allow a user to enable 2FA and login using 2FA
Test timeout of 60000ms exceeded.
|
[@calcom/web] › apps/web/playwright/login.2fa.e2e.ts:21:7 › 2FA Tests › should allow a user to enable 2FA and login using 2FA:
apps/web/playwright/login.2fa.e2e.ts#L177
1) [@***com/web] › apps/web/playwright/login.2fa.e2e.ts:21:7 › 2FA Tests › should allow a user to enable 2FA and login using 2FA
page.fill: Target closed
=========================== logs ===========================
waiting for locator('input[name="2fa6"]')
============================================================
175 | await page.fill('input[name="2fa4"]', token[3]);
176 | await page.fill('input[name="2fa5"]', token[4]);
> 177 | await page.fill('input[name="2fa6"]', token[5]);
| ^
178 | }
179 |
at fillOtp (/home/runner/actions-runner/_work/***.com/***.com/apps/web/playwright/login.2fa.e2e.ts:177:14)
at /home/runner/actions-runner/_work/***.com/***.com/apps/web/playwright/login.2fa.e2e.ts:45:7
at /home/runner/actions-runner/_work/***.com/***.com/apps/web/playwright/login.2fa.e2e.ts:23:18
|
[@calcom/web] › apps/web/playwright/login.2fa.e2e.ts:21:7 › 2FA Tests › should allow a user to enable 2FA and login using 2FA:
apps/web/playwright/login.2fa.e2e.ts#L1
1) [@***com/web] › apps/web/playwright/login.2fa.e2e.ts:21:7 › 2FA Tests › should allow a user to enable 2FA and login using 2FA
Pending operations:
- page.fill at apps/web/playwright/login.2fa.e2e.ts:177:14
|
[@calcom/web] › apps/web/playwright/booking/radioGroupQuestion.e2e.ts:381:11 › Booking With Radio Question and Each Other Question › Booking With Radio Question and Address Question › Booking With Radio Question and select Question › Radio and select not required:
apps/web/playwright/fixtures/regularBookings.ts#L287
1) [@***com/web] › apps/web/playwright/booking/radioGroupQuestion.e2e.ts:381:11 › Booking With Radio Question and Each Other Question › Booking With Radio Question and Address Question › Booking With Radio Question and select Question › Radio and select not required
locator.isVisible: Execution context was destroyed, most likely because of a navigation
=========================== logs ===========================
checking visibility of getByRole('button', { name: 'View next' })
============================================================
at apps/web/playwright/fixtures/regularBookings.ts:287
285 | await goToNextMonthIfNoAvailabilities(eventTypePage);
286 | await eventTypePage.getByText("Reschedule").click();
> 287 | while (await eventTypePage.getByRole("button", { name: "View next" }).isVisible()) {
| ^
288 | await eventTypePage.getByRole("button", { name: "View next" }).click();
289 | }
290 | await eventTypePage.getByTestId("time").first().click();
at Object.rescheduleBooking (/home/runner/actions-runner/_work/***.com/***.com/apps/web/playwright/fixtures/regularBookings.ts:287:77)
at /home/runner/actions-runner/_work/***.com/***.com/apps/web/playwright/booking/radioGroupQuestion.e2e.ts:395:9
|
[@calcom/web] › apps/web/playwright/booking/selectQuestion.e2e.ts:99:9 › Booking With Phone Question and Each Other Question › Booking With Select Question and checkbox Question › Select required and checkbox required:
apps/web/playwright/fixtures/regularBookings.ts#L287
2) [@***com/web] › apps/web/playwright/booking/selectQuestion.e2e.ts:99:9 › Booking With Phone Question and Each Other Question › Booking With Select Question and checkbox Question › Select required and checkbox required
locator.isVisible: Execution context was destroyed, most likely because of a navigation
=========================== logs ===========================
checking visibility of getByRole('button', { name: 'View next' })
============================================================
at apps/web/playwright/fixtures/regularBookings.ts:287
285 | await goToNextMonthIfNoAvailabilities(eventTypePage);
286 | await eventTypePage.getByText("Reschedule").click();
> 287 | while (await eventTypePage.getByRole("button", { name: "View next" }).isVisible()) {
| ^
288 | await eventTypePage.getByRole("button", { name: "View next" }).click();
289 | }
290 | await eventTypePage.getByTestId("time").first().click();
at Object.rescheduleBooking (/home/runner/actions-runner/_work/***.com/***.com/apps/web/playwright/fixtures/regularBookings.ts:287:77)
at /home/runner/actions-runner/_work/***.com/***.com/apps/web/playwright/booking/selectQuestion.e2e.ts:113:7
|
[@calcom/web] › apps/web/playwright/booking/addressQuestione2e/addressQuestion.e2e.ts:439:9 › Booking With Address Question and Each Other Question › Booking With Address Question and Short text question › Address required and Short text required:
apps/web/playwright/fixtures/regularBookings.ts#L296
1) [@***com/web] › apps/web/playwright/booking/addressQuestione2e/addressQuestion.e2e.ts:439:9 › Booking With Address Question and Each Other Question › Booking With Address Question and Short text question › Address required and Short text required
locator.isVisible: Execution context was destroyed, most likely because of a navigation
=========================== logs ===========================
checking visibility of getByRole('heading', { name: 'Could not reschedule the meeting.' })
============================================================
at apps/web/playwright/fixtures/regularBookings.ts:296
294 | await eventTypePage.waitForTimeout(400);
295 | if (
> 296 | await eventTypePage.getByRole("heading", { name: "Could not reschedule the meeting." }).isVisible()
| ^
297 | ) {
298 | await eventTypePage.getByTestId("back").click();
299 | await eventTypePage.getByTestId("time").last().click();
at Object.rescheduleBooking (/home/runner/actions-runner/_work/***.com/***.com/apps/web/playwright/fixtures/regularBookings.ts:296:97)
at /home/runner/actions-runner/_work/***.com/***.com/apps/web/playwright/booking/addressQuestione2e/addressQuestion.e2e.ts:455:7
|
[@calcom/web] › apps/web/playwright/booking/longTextQuestion.e2e.ts:277:7 › Booking With Long Text Question and Each Other Question › Long Text required and Number not required:
apps/web/playwright/fixtures/regularBookings.ts#L287
2) [@***com/web] › apps/web/playwright/booking/longTextQuestion.e2e.ts:277:7 › Booking With Long Text Question and Each Other Question › Long Text required and Number not required
locator.isVisible: Execution context was destroyed, most likely because of a navigation
=========================== logs ===========================
checking visibility of getByRole('button', { name: 'View next' })
============================================================
at apps/web/playwright/fixtures/regularBookings.ts:287
285 | await goToNextMonthIfNoAvailabilities(eventTypePage);
286 | await eventTypePage.getByText("Reschedule").click();
> 287 | while (await eventTypePage.getByRole("button", { name: "View next" }).isVisible()) {
| ^
288 | await eventTypePage.getByRole("button", { name: "View next" }).click();
289 | }
290 | await eventTypePage.getByTestId("time").first().click();
at Object.rescheduleBooking (/home/runner/actions-runner/_work/***.com/***.com/apps/web/playwright/fixtures/regularBookings.ts:287:77)
at /home/runner/actions-runner/_work/***.com/***.com/apps/web/playwright/booking/longTextQuestion.e2e.ts:293:5
|
🎭 Playwright Run Summary
1 passed (2.0s)
|
🎭 Playwright Run Summary
1 flaky
[@***com/embed-core] › packages/embeds/embed-core/playwright/tests/inline.e2e.ts:8:7 › Inline Iframe › Inline Iframe - Configured with Dark Theme
2 skipped
1 passed (20.5s)
|
🎭 Playwright Run Summary
4 flaky
[@***com/embed-core] › packages/embeds/embed-core/playwright/tests/action-based.e2e.ts:54:7 › Popup Tests › should open embed iframe on click - Configured with light theme
[@***com/embed-core] › packages/embeds/embed-core/playwright/tests/action-based.e2e.ts:78:7 › Popup Tests › should be able to reschedule
[@***com/embed-core] › packages/embeds/embed-core/playwright/tests/action-based.e2e.ts:105:7 › Popup Tests › should open Routing Forms embed on click
[@***com/embed-core] › packages/embeds/embed-core/playwright/tests/action-based.e2e.ts:139:11 › Popup Tests › Floating Button Popup › Pro User - Configured in App with default setting of system theme › should open embed iframe according to system theme when no theme is configured through Embed API
1 skipped
9 passed (1.1m)
|
🎭 Playwright Run Summary
2 passed (9.8s)
|
🎭 Playwright Run Summary
1 flaky
[@***com/app-store] › packages/app-store/routing-forms/playwright/tests/basic.e2e.ts:299:9 › Routing Forms › Seeded Routing Form › Router URL should work
5 skipped
7 passed (21.5s)
|
🎭 Playwright Run Summary
1 flaky
[@***com/web] › apps/web/playwright/organization/organization-invitation.e2e.ts:251:9 › Organization › Email matching orgAutoAcceptEmail and a Verified Organization › Team Invitation
2 skipped
23 passed (54.8s)
|
🎭 Playwright Run Summary
1 flaky
[@***com/web] › apps/web/playwright/login.2fa.e2e.ts:21:7 › 2FA Tests › should allow a user to enable 2FA and login using 2FA
3 skipped
76 passed (3.3m)
|
🎭 Playwright Run Summary
2 flaky
[@***com/web] › apps/web/playwright/booking/radioGroupQuestion.e2e.ts:381:11 › Booking With Radio Question and Each Other Question › Booking With Radio Question and Address Question › Booking With Radio Question and select Question › Radio and select not required
[@***com/web] › apps/web/playwright/booking/selectQuestion.e2e.ts:99:9 › Booking With Phone Question and Each Other Question › Booking With Select Question and checkbox Question › Select required and checkbox required
1 skipped
122 passed (5.5m)
|
🎭 Playwright Run Summary
9 skipped
48 passed (1.4m)
|
🎭 Playwright Run Summary
2 flaky
[@***com/web] › apps/web/playwright/booking/addressQuestione2e/addressQuestion.e2e.ts:439:9 › Booking With Address Question and Each Other Question › Booking With Address Question and Short text question › Address required and Short text required
[@***com/web] › apps/web/playwright/booking/longTextQuestion.e2e.ts:277:7 › Booking With Long Text Question and Each Other Question › Long Text required and Number not required
1 skipped
78 passed (5.5m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
test-results-1_5
Expired
|
29.2 MB |
|