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
However these two don't work togather. If I try to do a screenshot of a modest button with the css style all:unset, we will get a snapshot failed error because there are small pixel differences between browsers.
Hey @vladnicula you can get the browser name by using page.context().browser().browserType().name(). I updated the recipe in our README to reflect that!
I'm following along a really nice article from https://storybook.js.org/blog/interaction-testing-with-storybook/
In it, there are two things that work well in isolation:
and
2. Snapshot testing via
jest-snapshot-test
However these two don't work togather. If I try to do a screenshot of a modest button with the css style
all:unset
, we will get a snapshot failed error because there are small pixel differences between browsers.Ideally, I'd like to prefix the snapshotIdentifier with the browser name, just like playwright does it. To do so, I think I need the
browserName
https://playwright.dev/docs/api/class-fixtures#fixtures-browser-name variable to be accesible in thepostRender
.The text was updated successfully, but these errors were encountered: