ui: fix running storybook tests in ci
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
"storybook": "storybook",
|
||||
"knip": "knip --fix",
|
||||
"storybook-dev": "storybook dev -p 6006",
|
||||
"test-storybook": "vitest run --project storybook --reporter verbose",
|
||||
"test-storybook": "vitest run --project storybook",
|
||||
"test-storybook-update-snapshots": "vitest run --project storybook --update"
|
||||
},
|
||||
"license": "MIT",
|
||||
|
||||
@@ -94,7 +94,16 @@ export default defineConfig({
|
||||
provider: "playwright",
|
||||
instances: [
|
||||
{
|
||||
browser: "webkit",
|
||||
// Ideally we should use webkit to match clan-app, but inside a
|
||||
// sandboxed nix build, webkit takes forever to finish
|
||||
// launching. Chromium randomly closes itself during testing, as
|
||||
// reported here:
|
||||
// https://github.com/vitest-dev/vitest/discussions/7981
|
||||
//
|
||||
// Firefox is the only browser that can reliably finish the
|
||||
// tests. We want to test storybook only, and the differences
|
||||
// between browsers are probably neglegible to us
|
||||
browser: "firefox",
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user