Playwright: Difference between revisions

Installing browsers for Playwright under NixOS: Fonctionne si playwright n'a pas la bonne version.
Tags: Mobile edit Mobile web edit
add link
Tags: Mobile edit Mobile web edit
Line 32: Line 32:
</syntaxHighlight>
</syntaxHighlight>


{{Note|The version of Playwright in Nixpkgs and your node developer environment (in <code>package[-lock].json</code>) must match unless you define <code>PLAYWRIGHT_LAUNCH_OPTIONS_EXECUTABLE_PATH</code>.}}
{{Note|The version of Playwright in Nixpkgs and your node developer environment (in <code>package[-lock].json</code>) must match unless you define <code>PLAYWRIGHT_LAUNCH_OPTIONS_EXECUTABLE_PATH</code> as shown above to force playwright to use a different browser than the hardcoded version. See also [https://discourse.nixos.org/t/running-playwright-tests/25655 this discussion].}}


== Using Devenv ==
== Using Devenv ==