Skip to content

fix: make sure Playwright works in DevContainers #3181

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

Merged

Conversation

CurlyFire
Copy link
Contributor

This patch fixes Invalid browser name exception when Playwright is used in a DevContainer context

Fixes #3174

@CurlyFire CurlyFire marked this pull request as draft May 29, 2025 13:43
This patch fixes Invalid browser name exception when Playwright is used in a DevContainer context

Fixes microsoft#3174
@CurlyFire CurlyFire force-pushed the fix-invalid-browser-devcontainers branch from 43c2acb to ed94ad1 Compare May 29, 2025 17:04
@CurlyFire
Copy link
Contributor Author

CurlyFire commented May 29, 2025

@mxschmitt I completed the modification after understanding how all the tests and checks work. However, when I commented out the thrown exception in the ValidateBrowserName method, not a single test that I ran locally failed. I thought that there would be a test that checked this behavior, so that I could modify it.

I would add one, but I'm not 100% certain what the context of the test should be or if I should even add one for this.

@mxschmitt
Copy link
Member

We don't have any tests for that - I think we can land as it is?

@CurlyFire CurlyFire marked this pull request as ready for review May 30, 2025 00:30
@CurlyFire
Copy link
Contributor Author

@mxschmitt Yep, sounds good

@mxschmitt mxschmitt merged commit 3fc20ec into microsoft:main May 30, 2025
15 checks passed
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.

[Bug]: Throws Invalid browser name from 'BROWSER' environment variable inside VS Code devcontainer
2 participants