Skip to content

fix: Embed - Get element click popup working for a descendant element #14749

Merged
sean-brydon merged 3 commits intomainfrom
04-25-fix_child_element_click_popup
Apr 26, 2024
Merged

fix: Embed - Get element click popup working for a descendant element #14749
sean-brydon merged 3 commits intomainfrom
04-25-fix_child_element_click_popup

Conversation

@hariombalhara
Copy link
Copy Markdown
Member

@hariombalhara hariombalhara commented Apr 25, 2024

What does this PR do?

Fixes #14748
Fixes CAL-3554

  • Added a test element in playground
  • Now clicking on descendent element would work for popups.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How should this be tested?

See Loom

Mandatory Tasks

  • Make sure you have self-reviewed the code. A decent size PR without self-review might be rejected.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 25, 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 Apr 26, 2024 2:24pm
platform-starter-kit ❌ Failed (Inspect) Apr 26, 2024 2:24pm
2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview Apr 26, 2024 2:24pm
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Apr 26, 2024 2:24pm

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 25, 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 Apr 25, 2024
Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @hariombalhara and the rest of your teammates on Graphite Graphite

@linear
Copy link
Copy Markdown

linear bot commented Apr 25, 2024

@hariombalhara hariombalhara force-pushed the 04-25-fix_child_element_click_popup branch from e5a7ae2 to 0949c57 Compare April 25, 2024 11:06
@github-actions github-actions bot added embed area: embed, widget, react embed High priority Created by Linear-GitHub Sync 🐛 bug Something isn't working labels Apr 25, 2024
@hariombalhara hariombalhara changed the title fix child element click popup fix: Embed - Get element click popup working for a descendant element Apr 25, 2024
@hariombalhara hariombalhara marked this pull request as ready for review April 25, 2024 11:09
@graphite-app graphite-app bot requested a review from a team April 25, 2024 11:09
@graphite-app
Copy link
Copy Markdown

graphite-app bot commented Apr 25, 2024

Graphite Automations

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

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

@deploysentinel
Copy link
Copy Markdown

deploysentinel bot commented Apr 25, 2024

Current Playwright Test Results Summary

✅ 315 Passing - ⚠️ 20 Flaky

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

(Last updated on 04/26/2024 02:36:27pm UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: 5bf26a6

Started: 04/26/2024 02:32:05pm UTC

⚠️ Flakes

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
FORM_SUBMITTED on submitting user form, triggers user webhook
Retry 1Initial Attempt
0.55% (1) 1 / 183 run
failed over last 7 days
6.01% (11) 11 / 183 runs
flaked over last 7 days

📄   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 1Initial Attempt
0.56% (1) 1 / 179 run
failed over last 7 days
22.35% (40) 40 / 179 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
user can login & logout succesfully -- future login flow user & logout using dashboard
Retry 1Initial Attempt
6.80% (14) 14 / 206 runs
failed over last 7 days
36.41% (75) 75 / 206 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
5.91% (13) 13 / 220 runs
failed over last 7 days
31.82% (70) 70 / 220 runs
flaked over last 7 days

📄   apps/web/playwright/integrations-stripe.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Stripe integration Can book a paid booking
Retry 1Initial Attempt
1% (2) 2 / 201 runs
failed over last 7 days
38.81% (78) 78 / 201 runs
flaked over last 7 days

📄   packages/embeds/embed-core/playwright/tests/namespacing.e2e.ts • 4 Flakes

Top 1 Common Error Messages

null

4 Test Cases Affected

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Namespacing Inline Embed Double install Embed Snippet with inline embed without a namespace(i.e. default namespace)
Retry 1Initial Attempt
0% (0) 0 / 202 runs
failed over last 7 days
51.49% (104) 104 / 202 runs
flaked over last 7 days
Namespacing Inline Embed Double install Embed Snippet with inline embed using a namespace
Retry 1Initial Attempt
0% (0) 0 / 202 runs
failed over last 7 days
50.50% (102) 102 / 202 runs
flaked over last 7 days
Namespacing Inline Embed Add inline embed using a namespace without reload
Retry 1Initial Attempt
0.50% (1) 1 / 202 run
failed over last 7 days
50.99% (103) 103 / 202 runs
flaked over last 7 days
Namespacing Different namespaces can have different init configs
Retry 1Initial Attempt
0% (0) 0 / 200 runs
failed over last 7 days
50% (100) 100 / 200 runs
flaked over last 7 days

📄   packages/embeds/embed-react/playwright/tests/basic.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
React Embed Element Click Popup should verify that the iframe got created with correct URL - namespaced
Retry 1Initial Attempt
18.40% (39) 39 / 212 runs
failed over last 7 days
38.68% (82) 82 / 212 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
16.67% (35) 35 / 210 runs
failed over last 7 days
53.81% (113) 113 / 210 runs
flaked over last 7 days
Popup Tests should be able to reschedule
Retry 1Initial Attempt
-182.26% (-113) -113 / 62 runs
failed over last 7 days
182.26% (113) 113 / 62 runs
flaked over last 7 days
Popup Tests should open Routing Forms embed on click
Retry 1Initial Attempt
-180.65% (-112) -112 / 62 runs
failed over last 7 days
180.65% (112) 112 / 62 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
-180.65% (-112) -112 / 62 runs
failed over last 7 days
180.65% (112) 112 / 62 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
-180.65% (-112) -112 / 62 runs
failed over last 7 days
180.65% (112) 112 / 62 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
-180.65% (-112) -112 / 62 runs
failed over last 7 days
180.65% (112) 112 / 62 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
-180.65% (-112) -112 / 62 runs
failed over last 7 days
180.65% (112) 112 / 62 runs
flaked over last 7 days
Popup Tests prendered embed should be loaded and apply the config given to it
Retry 1Initial Attempt
-180.65% (-112) -112 / 62 runs
failed over last 7 days
180.65% (112) 112 / 62 runs
flaked over last 7 days
Popup Tests should open on clicking child element
Retry 1Initial Attempt
0% (-3) -3 / 0 runs
failed over last 7 days
0% (3) 3 / 0 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
17.86% (40) 40 / 224 runs
failed over last 7 days
24.55% (55) 55 / 224 runs
flaked over last 7 days

View Detailed Build Results


@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 25, 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
Copy Markdown
Member

@sean-brydon sean-brydon left a comment

Choose a reason for hiding this comment

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

If i tested it right - it worked <3 LGTM

@sean-brydon sean-brydon enabled auto-merge (squash) April 26, 2024 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 bug Something isn't working consumer core area: core, team members only embed area: embed, widget, react embed High priority Created by Linear-GitHub Sync

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CAL-3554] Element Click popup doesn't work if the target is a descendant of data-cal-link element

4 participants