Skip to content

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Apr 10, 2024

Conversation

Emyrk
Copy link
Member

@Emyrk Emyrk commented Apr 9, 2024

nix is running an older version of chromium, so had to reduce the playwright version.

Emyrk added 2 commits April 9, 2024 16:28
nix is running an older version of chromium, so had to reduce the
playwright version.
@Emyrk Emyrk marked this pull request as ready for review April 10, 2024 16:36
@Emyrk Emyrk requested a review from aslilac April 10, 2024 17:59
Copy link
Member

@aslilac aslilac left a comment

Choose a reason for hiding this comment

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

couple small things, but overall this is great! thanks for this!

@@ -20,3 +20,26 @@ pnpm playwright:test
# Run a specific test (`-g` stands for grep. It accepts regex).
pnpm playwright:test -g '<your test here>'
```

# Using nix
Copy link
Member

Choose a reason for hiding this comment

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

I think it's probably worth linking to https://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

Copy link
Member Author

Choose a reason for hiding this comment

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

👍

@aslilac
Copy link
Member

aslilac commented Apr 10, 2024

I bet we could even write a script that gets the version number from nixpkgs, and runs pnpm install playwright@x.x.x, but that's probably for another PR

Emyrk and others added 2 commits April 10, 2024 13:14
@Emyrk
Copy link
Member Author

Emyrk commented Apr 10, 2024

I bet we could even write a script that gets the version number from nixpkgs, and runs pnpm install playwright@x.x.x, but that's probably for another PR

That would be very cool.

@Emyrk Emyrk merged commit 7fd9a75 into main Apr 10, 2024
26 checks passed
@Emyrk Emyrk deleted the stevenmasley/playwright-nix branch April 10, 2024 19:08
@github-actions github-actions bot locked and limited conversation to collaborators Apr 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants