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
Support omitBackground in expect > toHaveScreenshot in playwright config.
Currently, it will throw a TypeScript error when setting omitBackground to playwright config. It would be great if there was somehow a way to set this globally without having to do it in each assertion.
Hi, could you elaborate on why you're using omitBackground in your snapshot tests? We originally added it for printing screenshots, not for testing, so it's interesting to learn more about new usecases.
🚀 Feature Request
Support
omitBackground
inexpect > toHaveScreenshot
in playwright config.Currently, it will throw a TypeScript error when setting
omitBackground
to playwright config. It would be great if there was somehow a way to set this globally without having to do it in each assertion.Example
Motivation
A flag to globally omit background when screenshot is taken.
The text was updated successfully, but these errors were encountered: