CleverCloud / clever-components

Collection of Web Components by Clever Cloud
https://www.clever-cloud.com/doc/clever-components/
Apache License 2.0
215 stars 19 forks source link

A11Y tests: missing story names when debugging #1071

Closed florian-sanders-cc closed 1 week ago

florian-sanders-cc commented 3 weeks ago

Context

With #952 we have upgraded Storybook.

The new version contained an important breaking change related to story lazy loading: story functions no longer expose a storyName property.

Our automated test helpers (getStories & testAccessibility) relied on storyName so when you debug a test, you end up with Story: undefined.

We need to adapt to this change to ease debugging.

Note that we have bigger refactoring plans for these helpers and our tests in general (see #963) so this is just a quick fix in the meantime.

florian-sanders-cc commented 1 week ago

Fixed with #1072