baloise / design-system

The Baloise Design System consists of reusable components and a clearly defined visual style, that can be assembled together to build any number of applications.
https://design.baloise.dev
Apache License 2.0
100 stars 27 forks source link

:sparkles: testing library: extend 'bal-tabs.commands.ts' #996

Open svene opened 1 year ago

svene commented 1 year ago

Summary

Currently there is no command in 'bal-tabs.commands.ts' to do the following:

With 'active' it is possible to use:

balTabItemShouldBeActive(boolean)

Use Case

Cypress e2e testing

Preferred Solution

maybe: balTabItemShouldHaveState(state: string, active: boolean)

Additional Information

No response

Will this feature introduce breaking changes?

None

Code of Conduct

hirsch88 commented 1 year ago

Hi @svene I found a test command for the steps

image

Is that what you are looking for?