evalStorybookEnvironmentInfo
unknown version when Storybook V7
#783
Labels
✨ enhancement
New feature or request
The problem
In Storybook V7 the environment info is not properly captured
Environment
@percy/cli
version: 1.26.2This is in a NX monorepo with vite/react.
Details
In Storybook V6 the "about/settings" page looks like this
In Storybook V7 the "about/settings" page looks like this
When the
evalStorybookEnvironmentInfo
function runs on v7, it cannot find the storybook version and resolves tostorybook/unknown
.The reason for this is the xpath has changed, it no longer has the version in the header as you can see in the pictures.
The correct xpath to use is
//strong[contains(text(),'Storybook ')]
I believe.That being said, I did try that through
percy-storybook
and it still doesn't work, although does work when directly in Chrome dev tools. It could be related to the other Storybook V7 issues as I even went as far to find "button" (header) and it could not find the header button 🤔.It's possibly somewhat related to this ticket, but regardless if percy-storybook properly supports Storybook V7 tomorrow, the xpath will still need adjusting. I believe it warrants a separate issue. When Storybook V7 is properly supported, I'm going to guess this could follow after.
Debug logs
I don't have any debug logs but I can tell you I tried
storyStoreV7: false
and true. I tried against storybook static as well as a live server. All the same.Code to reproduce issue
I don't have an open source repo to reproduce this but it should be reproducible against any Storybook v7 deployment.
The text was updated successfully, but these errors were encountered: