Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: flaky webhook e2e test #14850

Merged
merged 8 commits into from
May 3, 2024
Merged

fix: flaky webhook e2e test #14850

merged 8 commits into from
May 3, 2024

Conversation

CarinaWolli
Copy link
Member

What does this PR do?

Fixes flaky webhook e2e tests.

Run:
yarn e2e webhook.e2e.ts

@graphite-app graphite-app bot requested a review from a team May 2, 2024 00:13
Copy link
Contributor

github-actions bot commented May 2, 2024

Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link.

@keithwillcode keithwillcode added consumer core area: core, team members only labels May 2, 2024
@dosubot dosubot bot added automated-tests area: unit tests, e2e tests, playwright 🐛 bug Something isn't working labels May 2, 2024
Copy link

vercel bot commented May 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ai ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 3, 2024 2:43pm
2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview May 3, 2024 2:43pm
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview May 3, 2024 2:43pm

Copy link

graphite-app bot commented May 2, 2024

Graphite Automations

"Add consumer team as reviewer" took an action on this PR • (05/02/24)

1 reviewer was added to this PR based on Keith Williams's automation.

Copy link
Contributor

github-actions bot commented May 2, 2024

📦 Next.js Bundle Analysis for @calcom/web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

Copy link

deploysentinel bot commented May 2, 2024

Current Playwright Test Results Summary

✅ 316 Passing - ⚠️ 14 Flaky

Run may still be in progress, this comment will be updated as current testing workflow or job completes...

(Last updated on 05/03/2024 02:57:44pm UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: 7987c4c

Started: 05/03/2024 02:52:47pm UTC

⚠️ Flakes

📄   apps/web/playwright/event-types.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Event Types tests -- legacy user Different Locations Tests Can remove location from multiple locations that are saved
Retry 2Retry 1Initial Attempt
6.20% (16) 16 / 258 runs
failed over last 7 days
14.34% (37) 37 / 258 runs
flaked over last 7 days

📄   apps/web/playwright/teams.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Teams - NonOrg -- future Team Onboarding Invite Members
Retry 1Initial Attempt
9% (26) 26 / 289 runs
failed over last 7 days
25.95% (75) 75 / 289 runs
flaked over last 7 days

📄   packages/embeds/embed-core/playwright/tests/preview.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Preview Preview - embed-core should load if correct embedLibUrl is provided
Retry 1Initial Attempt
0% (0) 0 / 29 runs
failed over last 7 days
34.48% (10) 10 / 29 runs
flaked over last 7 days

📄   packages/embeds/embed-core/playwright/tests/action-based.e2e.ts • 9 Flakes

Top 1 Common Error Messages

null

9 Test Cases Affected

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Popup Tests should open embed iframe on click - Configured with light theme
Retry 1Initial Attempt
12.81% (36) 36 / 281 runs
failed over last 7 days
50.53% (142) 142 / 281 runs
flaked over last 7 days
Popup Tests should be able to reschedule
Retry 1Initial Attempt
-137.86% (-142) -142 / 103 runs
failed over last 7 days
137.86% (142) 142 / 103 runs
flaked over last 7 days
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
Retry 1Initial Attempt
-136.27% (-139) -139 / 102 runs
failed over last 7 days
136.27% (139) 139 / 102 runs
flaked over last 7 days
Popup Tests should open Routing Forms embed on click
Retry 1Initial Attempt
-139.22% (-142) -142 / 102 runs
failed over last 7 days
139.22% (142) 142 / 102 runs
flaked over last 7 days
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 configured with 'auto' theme using Embed API
Retry 1Initial Attempt
-136.27% (-139) -139 / 102 runs
failed over last 7 days
136.27% (139) 139 / 102 runs
flaked over last 7 days
Popup Tests Floating Button Popup Pro User - Configured in App with default setting of system theme should open embed iframe(Event Booking Page) with dark theme when configured with dark theme using Embed API
Retry 1Initial Attempt
-136.27% (-139) -139 / 102 runs
failed over last 7 days
136.27% (139) 139 / 102 runs
flaked over last 7 days
Popup Tests Floating Button Popup Pro User - Configured in App with default setting of system theme should open embed iframe(Booker Profile Page) with dark theme when configured with dark theme using Embed API
Retry 1Initial Attempt
-136.27% (-139) -139 / 102 runs
failed over last 7 days
136.27% (139) 139 / 102 runs
flaked over last 7 days
Popup Tests prendered embed should be loaded and apply the config given to it
Retry 1Initial Attempt
-136.27% (-139) -139 / 102 runs
failed over last 7 days
136.27% (139) 139 / 102 runs
flaked over last 7 days
Popup Tests should open on clicking child element
Retry 1Initial Attempt
-136.36% (-120) -120 / 88 runs
failed over last 7 days
136.36% (120) 120 / 88 runs
flaked over last 7 days

📄   apps/web/playwright/organization/booking.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Bookings Team Event Can create a booking for Round Robin EventType
Retry 1Initial Attempt
16.20% (46) 46 / 284 runs
failed over last 7 days
24.65% (70) 70 / 284 runs
flaked over last 7 days

📄   packages/app-store/routing-forms/playwright/tests/basic.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Routing Forms Seeded Routing Form Router URL should work
Retry 1Initial Attempt
0% (0) 0 / 273 runs
failed over last 7 days
9.89% (27) 27 / 273 runs
flaked over last 7 days

View Detailed Build Results


Copy link
Contributor

@joeauyeung joeauyeung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -427,7 +427,7 @@ test.describe("BOOKING_RESCHEDULED", async () => {

await page.locator('[data-testid="confirm-reschedule-button"]').click();

await expect(page).toHaveURL(/.*booking/);
await expect(page.getByTestId("success-page")).toBeVisible();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the possible reason for toHaveUrl to be not working?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure why it happened, but the issue was that sometimes .toHaveURL(/.*booking/) was already satisfied but the booking was not yet in the db

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automated-tests area: unit tests, e2e tests, playwright 🐛 bug Something isn't working consumer core area: core, team members only
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants