- Notifications
You must be signed in to change notification settings - Fork928
chore: nix shell to support playwright e2e tests#12917
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
e69e777
7df7577
d1a05aa
2d13ae0
9961c48
71f11a6
10d01b8
153fa87
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -20,3 +20,29 @@ pnpm playwright:test | ||
# Run a specific test (`-g` stands for grep. It accepts regex). | ||
pnpm playwright:test -g '<your test here>' | ||
``` | ||
# Using nix | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. I think it's probably worth linking tohttps://search.nixos.org/packages?channel=unstable&type=packages&query=playwright-driver somewhere in this section as a quick way to figure out what the "right" Playwright version is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. 👍 | ||
If this breaks, it is likely because the flake chromium version and playwright | ||
are no longer compatible. To fix this, update the flake to get the latest | ||
chromium version, and adjust the playwright version in the package.json. | ||
You can see the playwright version here: | ||
https://search.nixos.org/packages?channel=unstable&show=playwright-driver&from=0&size=50&sort=relevance&type=packages&query=playwright-driver | ||
```shell | ||
# Optionally add '--command zsh' to choose your shell. | ||
nix develop | ||
cd site | ||
pnpm install | ||
pnpm build | ||
pnpm playwright:test | ||
``` | ||
# Enterprise tests | ||
Enterprise tests require a license key to run. | ||
```shell | ||
export CODER_E2E_ENTERPRISE_LICENSE=<license key> | ||
``` |
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.