Skip to content

Commit 9ab323f

Browse files
committed
fix: 🐛 display the contents of DsfrTabContent on cypress components testing
1 parent 36cbbaf commit 9ab323f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

cypress/support/component.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,13 @@ declare global {
3535
}
3636
}
3737

38-
Cypress.Commands.add('mount', mount)
38+
Cypress.Commands.add('mount', (component, options = {}) => {
39+
options.global = options.global || {}
40+
options.global.stubs = options.global.stubs || {}
41+
options.global.stubs.transition = false
42+
43+
return mount(component, options)
44+
})
3945

4046
// Example use:
41-
// cy.mount(MyComponent)
47+
// cy.mount(MyComponent)

0 commit comments

Comments
 (0)