Viewport sizing
Managed runs start at 1280 × 800 CSS pixels. Set viewport in config or change it during a test:
await app.setViewport({ width: 390, height: 844 });The next test restores its default size. These dimensions change desktop layout; they don’t emulate touch input, a phone’s OS, or its physical screen.
Manual runs use the actual window. A browser can’t reliably resize its own tab, so a matching app.setViewport request succeeds and a different size fails. Fixed config dimensions must match too. Resize the window yourself or use a managed browser.