Skip to content

Commit

Permalink
Fix build sandboxes
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperpeulen committed Feb 27, 2024
1 parent 2654582 commit 01d0f7f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import { expect } from '@storybook/test';
export default {
component: globalThis.Components.Pre,
play: async ({ canvasElement, name }: PlayFunctionContext) => {
await expect(JSON.parse(within(canvasElement).getByTestId('pre').innerText)).toEqual({
await expect(
JSON.parse(within(canvasElement as HTMLPreElement).getByTestId('pre').innerText)
).toEqual({
name,
});
},
Expand Down

0 comments on commit 01d0f7f

Please sign in to comment.