mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-29 22:59:20 +09:00
9bb6c536c0
* chore(#10336): register snippets
* test(#10336): add `components/Mk[A-B].*` stories
* build: desynced lockfile
* ci(#10336): preload assets
* ci(#10336): use pull_request
* build: update lockfile
* fix: reactivity transform
* chore: track upstream changes
* refactor: avoid temporary previous tapping declarations
* revert: avoid temporary previous tapping declarations
This reverts commit e649b1b1e6
.
* test: flaky snapshots
* style: import
43 lines
981 B
TypeScript
43 lines
981 B
TypeScript
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
|
import { action } from '@storybook/addon-actions';
|
|
import { expect } from '@storybook/jest';
|
|
import { waitFor } from '@storybook/testing-library';
|
|
import { StoryObj } from '@storybook/vue3';
|
|
import MkError from './MkError.vue';
|
|
export const Default = {
|
|
render(args) {
|
|
return {
|
|
components: {
|
|
MkError,
|
|
},
|
|
setup() {
|
|
return {
|
|
args,
|
|
};
|
|
},
|
|
computed: {
|
|
props() {
|
|
return {
|
|
...this.args,
|
|
};
|
|
},
|
|
events() {
|
|
return {
|
|
retry: action('retry'),
|
|
};
|
|
},
|
|
},
|
|
template: '<MkError v-bind="props" v-on="events" />',
|
|
};
|
|
},
|
|
async play({ canvasElement }) {
|
|
await expect(canvasElement.firstElementChild).not.toBeNull();
|
|
await waitFor(async () => expect(canvasElement.firstElementChild?.classList).not.toContain('_transition_zoom-enter-active'));
|
|
},
|
|
args: {
|
|
},
|
|
parameters: {
|
|
layout: 'centered',
|
|
},
|
|
} satisfies StoryObj<typeof MkError>;
|