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

Update Playwright config to choose the test web server based on env #1393

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

aashu16
Copy link
Collaborator

@aashu16 aashu16 commented Apr 5, 2024

If process.env.CI === true, Playwright will use pnpm preview, otherwise pnpm dev.

* When `process.env.CI` is true (in a GitHub action, for instance),
  tests run on the production build; otherwise, they run on the dev
  server.
@aeharding
Copy link
Owner

Thanks!

@aeharding aeharding merged commit 0c04cd2 into aeharding:main Apr 5, 2024
3 checks passed
@aashu16 aashu16 deleted the e2e/env-based-server-url branch April 5, 2024 18:24
@aeharding
Copy link
Owner

Hey, I added you as a contributor to the project!

I also added a CODEOWNERS. I added you as the owner for e2e/, so you should be able to approve and merge your own PRs to that folder. This should help avoid needing to sync with me for every single PR.

Of course I am happy (and excited) to check out your PRs too! Hopefully this just removes some friction.

@aashu16
Copy link
Collaborator Author

aashu16 commented Apr 6, 2024

Thanks!

Unlikely that I will merge anything without a review but appreciate the trust. Beats working with a fork any day 😁

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.

2 participants