-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Issue:
- Whenever a hook is used within a story,
StoryWrightconsiders theStepsobject as undefined and does not take a screenshot. Only a static screenshot is taken.
Expected Behavior:
- A static screenshot AND a screenshot with the
Stepsexecuted are taken.
Steps to Reproduce:
- Clone repro branch https://github.com/TristanWatanabe/fluentui/tree/storywright-hooks-bug
- Run
yarn workspace @fluentui/react-components vr:build - Run
yarn workspace @fluentui/react-components vr:test - Observe
dist/screenshotsfolder and see issue - only a static screenshot is taken (Component.Example With Hook.chromium.png). Comment out theuseStyles()invocation in the story in thesrc/stories/Example/Example.stories.tsxfile and re-run steps 2 and 3 to see the expected behavior where BOTH static screenshot and a steps screenshot are taken.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels