-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add E2E test for multiple CSF files with same title in autodocs
- Loading branch information
Showing
4 changed files
with
62 additions
and
1 deletion.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
code/addons/docs/template/stories/docs2/multiple-csf-files-a.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { global as globalThis } from '@storybook/global'; | ||
|
||
export default { | ||
title: 'Multiple CSF Files Same Title', | ||
component: globalThis.Components.Html, | ||
tags: ['autodocs'], | ||
args: { | ||
content: '<p>paragraph</p>', | ||
}, | ||
parameters: { | ||
chromatic: { disable: true }, | ||
}, | ||
}; | ||
|
||
export const DefaultA = {}; | ||
|
||
export const SpanContent = { | ||
args: { content: '<span>span</span>' }, | ||
}; | ||
|
||
export const CodeContent = { | ||
args: { content: '<code>code</code>' }, | ||
}; |
23 changes: 23 additions & 0 deletions
23
code/addons/docs/template/stories/docs2/multiple-csf-files-b.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { global as globalThis } from '@storybook/global'; | ||
|
||
export default { | ||
title: 'Multiple CSF Files Same Title', | ||
component: globalThis.Components.Html, | ||
tags: ['autodocs'], | ||
args: { | ||
content: '<p>paragraph</p>', | ||
}, | ||
parameters: { | ||
chromatic: { disable: true }, | ||
}, | ||
}; | ||
|
||
export const DefaultB = {}; | ||
|
||
export const H1Content = { | ||
args: { content: '<h1>heading 1</h1>' }, | ||
}; | ||
|
||
export const H2Content = { | ||
args: { content: '<h2>heading 2</h2>' }, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
export let content = ''; | ||
</script> | ||
|
||
<div>{@html content}></div> | ||
<div>{@html content}</div> |