We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc8e0ac commit e9c52dbCopy full SHA for e9c52db
src/components/DsfrLogo/DsfrLogo.e2e.ts
src/components/DsfrLogo/DsfrLogo.stories.ts
@@ -1,3 +1,4 @@
1
+import { within, expect } from '@storybook/test'
2
import DsfrLogo from './DsfrLogo.vue'
3
4
export default {
@@ -40,3 +41,8 @@ Logo.args = {
40
41
small: false,
42
large: false,
43
}
44
+Logo.play = async ({ canvasElement }) => {
45
+ const canvas = within(canvasElement)
46
+ const p = canvas.getByText(new RegExp(Logo.args.logoText.join('.*')))
47
+ expect(p).toHaveClass('fr-logo')
48
+}
0 commit comments