Playwright / Quiz
Pocket-Sized Battlefield
Device presets, hasTouch, geolocation grants, and the honest limits of emulating an iPhone with a desktop engine.
- Difficulty
- Easy
- Format
- Quiz
- Points
- 100
- Estimate
- 9 min
// MISSION BRIEF
Your Mission
Mobile traffic is half your users, and zero percent of your test suite. Playwright's device emulation closes part of that gap, if you know what it actually emulates and what it never can.
This quiz covers device presets, touch, viewport behavior, permissions, and where emulation honestly ends.
Speed bonus active.
// FIRST CONTACT
Battle teaser
A device preset like `devices['Pixel 7']` configures:
- AA connection to a real Pixel 7 in a device farm
- BViewport, user agent, deviceScaleFactor, isMobile, hasTouch, and default browser type in one bundle
- COnly the screen width
- DThe Android OS version to boot in an emulator
Answers, scoring, hints, and the full battle stay sealed.
// SKILL TAGS
playwrightmobile-emulationdeviceswebe2e-testing