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

refactor: 💡 Force requests in playwright to use controller addr #2755

Merged
merged 1 commit into from
Mar 28, 2025

Conversation

ZedLi
Copy link
Collaborator

@ZedLi ZedLi commented Mar 28, 2025

Description

As a followup to PR #2700 and this thread, we should always be using the controller URL when making HTTP requests.

This PR overrides the request fixture with our own custom one that forces the baseURL to be the boundary controller URL, which fixes the issue in cases when testing against a local admin branch as the baseURL for requests would then be pointing incorrectly against the locally running server.

How to Test

Try running the tests against a local branch for admin UI.

@ZedLi ZedLi self-assigned this Mar 28, 2025
@ZedLi ZedLi requested a review from a team as a code owner March 28, 2025 21:51
Copy link

vercel bot commented Mar 28, 2025

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

Name Status Preview Comments Updated (UTC)
boundary-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 28, 2025 10:11pm
boundary-ui-desktop ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 28, 2025 10:11pm

Copy link
Collaborator

@lisbet-alvarez lisbet-alvarez left a comment

Choose a reason for hiding this comment

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

Thank you for fixing this! Works great!

Copy link
Collaborator

@calcaide calcaide left a comment

Choose a reason for hiding this comment

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

Thanks for the fix 🙌

@ZedLi ZedLi merged commit 1025cbf into main Mar 28, 2025
13 checks passed
@ZedLi ZedLi deleted the fix-request-usage-in-playwright branch March 28, 2025 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants