You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After implementing the Preconfiguring viewport size recipe, we faced an issue with StorybookTestRunner not being present in the userAgent
so the StorybookTestRunner check fails:
Checking for the StorybookTestRunner in preVisit shows that it's not present in the userAgent only for the first pass(story) in the suit. But it becomes a part of the userAgent for the subsequent stories.
asyncpreVisit(page,story){// Uncomment the following line to see console logs from the browserpage.on('console',(msg)=>console.log(msg.text()))awaitpage.evaluate((context)=>{constisTestRunner=window.navigator.userAgent.match(/StorybookTestRunner/)console.log(isTestRunner)})}
The text was updated successfully, but these errors were encountered:
Describe the bug
After implementing the Preconfiguring viewport size recipe, we faced an issue with StorybookTestRunner not being present in the userAgent
so the
StorybookTestRunner
check fails:To Reproduce
To reproduce the issue, it's enough to call
getStoryContext(page, story)
in thepreVisit
Then run tests for the stories containing components with isTestRunner check:
System
Additional context
Checking for the StorybookTestRunner in
preVisit
shows that it's not present in theuserAgent
only for the first pass(story) in the suit. But it becomes a part of theuserAgent
for the subsequent stories.The text was updated successfully, but these errors were encountered: