Closed unlikelyzero closed 6 months ago
Would dispatching orientationchange
event manually work for your use case (see this test for example)?
@yury-s I think so. Let me test it
Closing per the response above, there are no current plans to add dedicated API for changing the viewport orientation.
🚀 Feature Request
I'm starting to get into the weeds of mobile testing and noticed that Playwright doesn't have an API for changing from portrait to landscape. This is something that broke in our application and something that'd we'd want to explicitly test for.
I believe the standard approach would be to change the viewport, but when using playwright/test device's in a realworld way (many projects executing a single test), it wouldn't be practical to set the viewport with explicit values and doesn't interact with browser
orientationchange
in a native wayExample
Chat GPT created the following:
Motivation
This seems like something that every mobile friendly browser would have