diff --git a/lib/cli/src/frameworks/vue/Page.stories.js b/lib/cli/src/frameworks/vue/Page.stories.js index 6a95114640e..4dbc552ebd8 100644 --- a/lib/cli/src/frameworks/vue/Page.stories.js +++ b/lib/cli/src/frameworks/vue/Page.stories.js @@ -23,6 +23,6 @@ export const LoggedOut = Template.bind({}); export const LoggedIn = Template.bind({}); LoggedIn.play = async ({ canvasElement }) => { const canvas = within(canvasElement); - const loginButton = await canvas.getByRole('button', { name: /Log in/i }); + const loginButton = await canvas.findByRole('button', { name: /Log in/i }); await userEvent.click(loginButton); };