Merge pull request #225758 from wegank/playwright-tests

playwright: fix darwin tests
This commit is contained in:
Weijia Wang 2023-04-11 19:46:45 +03:00 committed by GitHub
commit b07aabdfb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,22 +83,19 @@ let
pname = "playwright-browsers";
version = driverVersion;
src = runCommand "playwright-browsers-base" {
outputHashMode = "recursive";
outputHashAlgo = "sha256";
outputHash = {
x86_64-darwin = "0z2kww4iby1izkwn6z2ai94y87bkjvwak8awdmjm8sgg00pa9l1a";
}.${system} or throwSystem;
} ''
dontUnpack = true;
installPhase = ''
runHook preInstall
export PLAYWRIGHT_BROWSERS_PATH=$out
${driver}/bin/playwright install
rm -r $out/.links
runHook postInstall
'';
installPhase = ''
mkdir $out
cp -r * $out/
'';
meta.platforms = lib.platforms.darwin;
};
browsers-linux = { withFirefox ? true, withChromium ? true }: let