Closed brandondurham closed 1 year ago
@brandondurham have you tried to use canvas.findByLabelText('Submit')
instead ?
@JesusTheHun I have, with the same result.
@brandondurham can you check if you still have the issue with the latest version ?
Also can you share with me your versions and a full reproduction example ? I am unable to make storybook run when I define a play function .
I close this, feel free to re-open if the issue is still present
I’m attempting to add some simple interaction tests to some forms in Storybook. They all work for the stories that don’t use
withRouter
, but the stories usingwithRouter
all seem to access#root
before it gets populated with children.This is the test thus far:
Running this in Storybook yields the following error:
My actual integration tests can find the elements using nearly identical code but Storybook cannot. It appears that
#root
is actually empty at the time the test is run.