mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-31 05:03:21 +08:00
Hooks state bug in Vue2
This commit is contained in:
parent
d7d91a1d46
commit
0814a13d82
@ -24,6 +24,8 @@ export const UseState = {
|
||||
],
|
||||
play: async ({ canvasElement }: PlayFunctionContext) => {
|
||||
const button = await within(canvasElement).findByText('Clicked 0 times');
|
||||
// FIXME: hooks state does not trigger a re-render in vue2
|
||||
if (globalThis.storybookRenderer === 'vue') return;
|
||||
|
||||
await userEvent.click(button);
|
||||
await within(canvasElement).findByText('Clicked 1 times');
|
||||
|
Loading…
x
Reference in New Issue
Block a user