Closed florian-sanders-cc closed 1 week ago
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.
storyName
Our automated test helpers (getStories & testAccessibility) relied on storyName so when you debug a test, you end up with Story: undefined.
getStories
testAccessibility
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.
Fixed with #1072
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 onstoryName
so when you debug a test, you end up withStory: 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.