Mobile testing
Playwright: test a scroll-driven landing page on mobile
A page can load successfully while its film stays on the first frame. Test navigation, scene progress and the return to the starting position together.
Build a repeatable test
Open the page in a mobile context and record its first frame. Scroll halfway, wait for the renderer to draw, capture the scene alone and repeat at the end. Returning to the same position should restore the same content. Screenshots that differ only because the menu moved do not prove that the film advanced.
What to check on a phone
On a test page, check the beginning, midpoint and end of the sequence. On a physical phone, swipe, rotate the screen and enable sound with a tap. Desktop emulation only covers some of the conditions in Safari on iPhone.
Before installing
Use a separate test profile. Read the configuration, fixtures and server startup scripts before running a downloaded suite. Avoid sharing traces containing sessions or personal data.