Skip to content

Commit

Permalink
Fix tags stories
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed May 7, 2024
1 parent aad8a11 commit 14f86ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions code/lib/preview-api/template/stories/tags-config.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ export default {
};

export const Inheritance = {
tags: ['story-one', 'story-two'],
tags: ['story-one'],
play: async ({ canvasElement }: PlayFunctionContext<any>) => {
const canvas = within(canvasElement);
await expect(JSON.parse(canvas.getByTestId('pre').innerText)).toEqual({
tags: ['dev', 'test', 'component-one', 'component-two', 'story-one', 'story-two'],
tags: ['dev', 'test', 'component-one', 'component-two', 'autodocs', 'story-one'],
});
},
parameters: { chromatic: { disable: false } },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const Inheritance = {
play: async ({ canvasElement }: PlayFunctionContext<any>) => {
const canvas = within(canvasElement);
await expect(JSON.parse(canvas.getByTestId('pre').innerText)).toEqual({
tags: ['dev', 'test', 'component-one', 'story-one', 'autodocs'],
tags: ['dev', 'test', 'component-one', 'autodocs', 'story-one'],
});
},
parameters: { chromatic: { disable: false } },
Expand Down

0 comments on commit 14f86ec

Please sign in to comment.