ui: fix running storybook tests in ci

This commit is contained in:
Glen Huang
2025-10-22 19:06:17 +08:00
parent 5fb4751bd8
commit 90e6d77e26
5 changed files with 19 additions and 10 deletions

View File

@@ -58,8 +58,8 @@ buildNpmPackage (finalAttrs: {
env = {
PLAYWRIGHT_BROWSERS_PATH = "${playwright.browsers.override {
withFfmpeg = false;
withFirefox = false;
withWebkit = true;
withFirefox = true;
withWebkit = false;
withChromium = false;
withChromiumHeadlessShell = false;
}}";
@@ -68,6 +68,7 @@ buildNpmPackage (finalAttrs: {
# the playwright nix package does not support:
# https://github.com/NixOS/nixpkgs/blob/f9c3b27aa3f9caac6717973abcc549dbde16bdd4/pkgs/development/web/playwright/driver.nix#L261
PLAYWRIGHT_HOST_PLATFORM_OVERRIDE = "nixos";
DEBUG = "vitest:*";
};
preBuild = finalAttrs.preBuild + ''
playwright_ver=$(jq --raw-output .devDependencies.playwright ${./ui/package.json})