Skip to content

Commit 8e878f0

Browse files
authored
Update packages + upgrade Storybook to v10 (#17201)
* chore: Update packages + upgrade Storybook to v10 * fix: Increase timeout for UI tests
1 parent 00c9408 commit 8e878f0

File tree

8 files changed

+234
-351
lines changed

8 files changed

+234
-351
lines changed

.github/workflows/server.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ jobs:
209209
working-directory: tools/server/webui
210210

211211
- name: Run UI tests
212-
run: npm run test:ui
212+
run: npm run test:ui -- --testTimeout=60000
213213
working-directory: tools/server/webui
214214

215215
- name: Run E2E tests

tools/server/webui/.storybook/preview.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,16 @@ const preview: Preview = {
1111
date: /Date$/i
1212
}
1313
},
14+
1415
backgrounds: {
1516
disable: true
17+
},
18+
19+
a11y: {
20+
// 'todo' - show a11y violations in the test UI only
21+
// 'error' - fail CI on a11y violations
22+
// 'off' - skip a11y checks entirely
23+
test: 'todo'
1624
}
1725
},
1826
decorators: [

tools/server/webui/.storybook/vitest.setup.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
import * as a11yAddonAnnotations from '@storybook/addon-a11y/preview';
12
import { setProjectAnnotations } from '@storybook/sveltekit';
23
import * as previewAnnotations from './preview';
34
import { beforeAll } from 'vitest';
45

5-
const project = setProjectAnnotations([previewAnnotations]);
6+
const project = setProjectAnnotations([a11yAddonAnnotations, previewAnnotations]);
67

78
beforeAll(async () => {
89
if (project.beforeAll) {

0 commit comments

Comments
 (0)