Skip to content

fix: Snippet path in preview#14830

Merged
keithwillcode merged 9 commits into
mainfrom
fix-snippet-path-in-preview
May 2, 2024
Merged

fix: Snippet path in preview#14830
keithwillcode merged 9 commits into
mainfrom
fix-snippet-path-in-preview

Conversation

@hariombalhara
Copy link
Copy Markdown
Member

@hariombalhara hariombalhara commented May 1, 2024

What does this PR do?

Fixes #14831
Fixes CAL-3598

Regression from https://github.com/calcom/cal.com/pull/13386/files#r1586013449

Added a regression test as well. The tests were there for preview flow but the bug caused the localhost:3000 to be hardcoded, they were all running fine as localhost:3000 is setup properly in CI as well but not in production.

Added a test now to ensure that embedLibUrl is being used.

Type of change

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

How should this be tested?

Pretty straightforward revert. So, nothing to test. Added an automation scenario as well.
Also, it can't be replicated easily locally.

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 May 1, 2024

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

Name Status Preview Comments Updated (UTC)
platform-starter-kit ❌ Failed (Inspect) May 2, 2024 3:35pm
3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
ai ⬜️ Ignored (Inspect) Visit Preview May 2, 2024 3:35pm
cal ⬜️ Ignored (Inspect) Visit Preview May 2, 2024 3:35pm
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview May 2, 2024 3:35pm

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 1, 2024

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

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 May 1, 2024

@hariombalhara hariombalhara marked this pull request as ready for review May 1, 2024 08:26
@graphite-app graphite-app Bot requested a review from a team May 1, 2024 08:26
@dosubot dosubot Bot added automated-tests area: unit tests, e2e tests, playwright embed area: embed, widget, react embed 🐛 bug Something isn't working 📉 regressing This used to work. Now it doesn't anymore. labels May 1, 2024
p(cal, ar);
};
})(window, "//localhost:3000/embed/embed.js", "init");
})(window, embedLibUrl, "init");
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It was an accidental change that got committed.
https://github.com/calcom/cal.com/pull/13386/files#r1586013449

@graphite-app
Copy link
Copy Markdown

graphite-app Bot commented May 1, 2024

Graphite Automations

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

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

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 1, 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! 🙌

@deploysentinel
Copy link
Copy Markdown

deploysentinel Bot commented May 1, 2024

Current Playwright Test Results Summary

✅ 25 Passing - ⚠️ 1 Flaky

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

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

Run Details

Running Workflow PR Update on Github Actions

Commit: d5a0a1f

Started: 05/02/2024 04:01:25pm UTC

⚠️ Flakes

📄   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
7.50% (21) 21 / 280 runs
failed over last 7 days
33.93% (95) 95 / 280 runs
flaked over last 7 days

View Detailed Build Results


@keithwillcode keithwillcode enabled auto-merge (squash) May 1, 2024 10:20
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.

Tested - LGTM

thanks for tests <3

@github-actions github-actions Bot added the High priority Created by Linear-GitHub Sync label May 2, 2024
@keithwillcode keithwillcode merged commit 6c8fced into main May 2, 2024
@keithwillcode keithwillcode deleted the fix-snippet-path-in-preview branch May 2, 2024 16:03
p6l-richard pushed a commit to p6l-richard/cal.com-fork that referenced this pull request Jul 22, 2024
* fix: Snippet path in preview

* Add test
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 embed area: embed, widget, react embed High priority Created by Linear-GitHub Sync 📉 regressing This used to work. Now it doesn't anymore.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CAL-3598] Embed Previews not working

4 participants