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
I cannot share the SUT since its running on a .local domain but I do my best to share enough info to reproduce the issue. Just DONT outright close it when information is lacking. Just ask for info that you require.
The problem started when updating to Playwright v 1.44, 1.42.1 worked fine. We do full page visual comparsions since we have a lot of functionality for the responsive site. Since 1.44 we see that not all elements we want to mask are being masked. At some point Playwright stops masking which obviously creates failing tests. (we mask elements for a reason).
Expected screenshot was made in Playwright v1.42.1, actual is Playwright v1.44. (Please ignore the black markers)
I recommend using a page with the same element repeating lots of times over the hole page.
Change the mask Locator to this element
Run the test and check the test report
Notice in the report that not all element that are marked for masking are masked
Expected behavior
Masking is correctly over the specified elements on the full page
Actual behavior
The mask option within toHaveScreenshot doesn't mask all elements on the page. The top elements get masked futher down the page the elements are not longer masked.
This looks like a duplicate of #30770, which was already fixed in v1.44.1. Please update Playwright to the latest version and let me know whether that helped.
Version
1.44
Steps to reproduce
I cannot share the SUT since its running on a .local domain but I do my best to share enough info to reproduce the issue. Just DONT outright close it when information is lacking. Just ask for info that you require.
The problem started when updating to Playwright v 1.44, 1.42.1 worked fine. We do full page visual comparsions since we have a lot of functionality for the responsive site. Since 1.44 we see that not all elements we want to mask are being masked. At some point Playwright stops masking which obviously creates failing tests. (we mask elements for a reason).
Expected screenshot was made in Playwright v1.42.1, actual is Playwright v1.44. (Please ignore the black markers)
Repo: https://github.com/sloeff/playwright_issue
Reproduction steps:
Expected behavior
Masking is correctly over the specified elements on the full page
Actual behavior
The mask option within toHaveScreenshot doesn't mask all elements on the page. The top elements get masked futher down the page the elements are not longer masked.
Additional context
No response
Environment
The text was updated successfully, but these errors were encountered: