Skip to content

Commit 41aafde

Browse files
committed
test(#10336): stabilize MkError stories
1 parent 0bb882c commit 41aafde

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.github/workflows/storybook.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ on:
55
branches:
66
- master
77
- develop
8-
pull_request_target:
8+
pull_request:
9+
branches:
10+
- "!l10n_develop"
911

1012
jobs:
1113
build:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/* eslint-disable @typescript-eslint/explicit-function-return-type */
2+
import { expect } from '@storybook/jest';
3+
import { waitFor } from '@storybook/testing-library';
4+
import { StoryObj } from '@storybook/vue3';
5+
import MkError from './MkError.vue';
6+
export const Default = {
7+
render(args) {
8+
return {
9+
components: {
10+
MkError,
11+
},
12+
setup() {
13+
return {
14+
args,
15+
};
16+
},
17+
computed: {
18+
props() {
19+
return {
20+
...this.args,
21+
};
22+
},
23+
},
24+
template: '<MkError v-bind="props" />',
25+
};
26+
},
27+
async play({ canvasElement }) {
28+
await expect(canvasElement.firstElementChild).not.toBeNull();
29+
await waitFor(async () => expect(canvasElement.firstElementChild?.classList).not.toContain('_transition_zoom-enter-active'));
30+
},
31+
parameters: {
32+
layout: 'centered',
33+
},
34+
} satisfies StoryObj<typeof MkError>;

0 commit comments

Comments
 (0)