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
Run the test (using headed mode is easiest to see the issue), e.g. pytest --headed --slowmo 2000
Expected behavior
When the test is executing, the site under test renders in mobile mode and displays as it normally would on a mobile device.
Screenshot running Playwright v1.45.1:
Actual behavior
When the test is executing, the site under test appears to render in desktop mode and content is not visible in trace files or if screenshots are taken.
Screenshot running Playwright v1.48.0:
Additional context
This issue isn't present in v1.45.1 of Playwright, so has seemingly been introduced after this point.
I've tested using multiple devices including Apple (iPhone 12, 13) and Android (Pixel 7) and the output seems to be the same. I've checked the debugging and looked at the devices object and it appears that isMobile is set to True when using these devices by default too.
Environment
- Operating System: Windows 11
- CPU: arm64
- Browser: Appears to be Webkit
- Python Version: 3.12.1
The text was updated successfully, but these errors were encountered:
Version
1.48.0 (also present in 1.47.0)
Steps to reproduce
pytest --headed --slowmo 2000
Expected behavior
When the test is executing, the site under test renders in mobile mode and displays as it normally would on a mobile device.
Screenshot running Playwright v1.45.1:
Actual behavior
When the test is executing, the site under test appears to render in desktop mode and content is not visible in trace files or if screenshots are taken.
Screenshot running Playwright v1.48.0:
Additional context
This issue isn't present in v1.45.1 of Playwright, so has seemingly been introduced after this point.
I've tested using multiple devices including Apple (iPhone 12, 13) and Android (Pixel 7) and the output seems to be the same. I've checked the debugging and looked at the devices object and it appears that isMobile is set to True when using these devices by default too.
Environment
The text was updated successfully, but these errors were encountered: