Skip to content

Commit

Permalink
Merge pull request #20692 from storybookjs/fix/ci-checks
Browse files Browse the repository at this point in the history
use correct method in ui example story
  • Loading branch information
yannbf authored Jan 19, 2023
2 parents 4eff3e6 + 91f3f62 commit 8614fd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/ui/blocks/src/components/Story.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const ForceInitialArgs = {
// test that it ignores updated args by emitting an arg update and assert that it isn't reflected in the DOM
play: async ({ args, canvasElement, loaded }: PlayFunctionContext<WebRenderer>) => {
const docsContext = loaded.docsContext as DocsContextProps;
const resolved = docsContext.resolveModuleExport(args.storyExport);
const resolved = docsContext.resolveOf(args.storyExport);
if (resolved.type !== 'story') throw new Error('Bad export, pass a story!');

await within(canvasElement).findByText(/Button/);
Expand Down

0 comments on commit 8614fd7

Please sign in to comment.