Closed skylock closed 1 year ago
My best guess is the cy.get
introduces enough of a delay for Storybook to set up event listeners before changeKnob
issues the change knob event. Perhaps loadStory
should introduce such a delay to allow Storybook event listeners to be added before releasing Cypress' queue.
Would you like to try a PR with a test to make sure that fixes it?
Updated button stories to:
and created a new spec file :
Expected result: Button text should be updated Actual result: Button text is not updated
Workaround: If I insert a simple cy.get('button) before changing the knob, the button component will be updated as expected