Device Testing Quick Reference
π― Quick Commandsβ
Just Tell the AI:β
| What You Want | Natural Language Prompt |
|---|---|
| π± iPhone | "Test on iPhone 13" |
| π± iPhone Landscape | "Switch to iPhone 13 landscape" |
| π± Android | "Test on Pixel 7" |
| π± Samsung | "Switch to Galaxy S24" |
| π± Tablet | "Test on iPad Pro 11" |
| π» Desktop | "Show desktop view" or "Desktop Chrome" |
| π Rotate | "Rotate to landscape" |
| π Custom | "Resize to 1024x768" |
π± Popular Device Presetsβ
iOS Devicesβ
iPhone SE (smallest) - 375Γ667
iPhone 13 (popular) - 390Γ844 β Most tested
iPhone 14 - 390Γ844
iPhone 15 - 393Γ852
iPhone 15 Pro Max - 430Γ932 (largest iPhone)
iPad Devicesβ
iPad Mini - 768Γ1024
iPad Air - 820Γ1180
iPad Pro 11 - 834Γ1194 β Popular tablet
iPad Pro 12.9 - 1024Γ1366 (largest iPad)
Android Phonesβ
Pixel 5 - 393Γ851
Pixel 7 - 412Γ915 β Stock Android
Galaxy S9+ - 360Γ740
Galaxy S24 - 360Γ780 β Latest Samsung
Desktopβ
Desktop Chrome - 1280Γ720 β Most common
Desktop Firefox - 1280Γ720
Desktop Safari - 1280Γ720
π¬ Example Prompts for VS Code / Claudeβ
Testing a Single Deviceβ
You say:
"Navigate to my-site.com and test on iPhone 13"
AI understands:
await playwright_navigate({ url: "my-site.com" });
await playwright_resize({ device: "iPhone 13" });
Testing Multiple Devicesβ
You say:
"Test the homepage on iPhone 13, iPad Pro, and Desktop Chrome.
Take screenshots of each."
AI understands:
await playwright_navigate({ url: "homepage" });
await playwright_resize({ device: "iPhone 13" });
await playwright_screenshot({ name: "mobile" });
await playwright_resize({ device: "iPad Pro 11" });
await playwright_screenshot({ name: "tablet" });
await playwright_resize({ device: "Desktop Chrome" });
await playwright_screenshot({ name: "desktop" });
Orientation Testingβ
You say:
"Test the menu on iPhone 13 in both portrait and landscape"
AI understands:
await playwright_resize({ device: "iPhone 13" });
// Test portrait menu
await playwright_resize({
device: "iPhone 13",
orientation: "landscape"
});
// Test landscape menu
Custom Dimensionsβ
You say:
"Resize to 1024x768 and test the layout"
AI understands:
await playwright_resize({ width: 1024, height: 768 });
Debugging Device-Specific Issuesβ
You say:
"The button is broken on mobile. Test on iPhone SE (small screen),
iPhone 13 (medium), and iPhone 15 Pro Max (large)"
AI understands:
await playwright_resize({ device: "iPhone SE" });
// Check button
await playwright_resize({ device: "iPhone 13" });
// Check button
await playwright_resize({ device: "iPhone 15 Pro Max" });
// Check button
π¨ Testing Workflowsβ
Responsive Design Testingβ
Workflow 1: Mobile-First
"Start mobile (iPhone 13), then tablet (iPad), then desktop"
Workflow 2: Edge Cases
"Test on the smallest (iPhone SE) and largest (iPad Pro 12.9) screens"
Workflow 3: Cross-Platform
"Compare iPhone 13 vs Galaxy S24 vs Pixel 7"
Form Testingβ
You say:
"Fill the signup form on iPhone 13, then switch to desktop and
verify everything still looks good"
Navigation Testingβ
You say:
"Test the mobile menu hamburger on iPhone 13, then switch to
desktop and verify it becomes a full navigation bar"
π Finding Devicesβ
To see all devices:
node scripts/list-devices.cjs
To filter devices:
node scripts/list-devices.cjs iphone
node scripts/list-devices.cjs pixel
node scripts/list-devices.cjs ipad
node scripts/list-devices.cjs galaxy
Ask the AI:
"What iPhone models can I test?"
"Show me all Android devices"
"What are the desktop browser options?"
π Recommended Test Matrixβ
Minimum Coverage (3 devices)β
β
iPhone 13 (iOS mobile)
β
iPad Pro 11 (Tablet)
β
Desktop Chrome (Desktop)
Good Coverage (5 devices)β
β
iPhone 13 (iOS mobile)
β
iPhone SE (Small iOS)
β
Galaxy S24 (Android mobile)
β
iPad Pro 11 (Tablet)
β
Desktop Chrome (Desktop)
Excellent Coverage (8 devices)β
β
iPhone SE (Smallest iOS)
β
iPhone 13 (Standard iOS)
β
iPhone 15 Pro Max (Largest iOS)
β
Pixel 7 (Standard Android)
β
Galaxy S24 (Samsung flagship)
β
iPad Air (Standard tablet)
β
iPad Pro 12.9 (Large tablet)
β
Desktop Chrome (Desktop)
π― Common Scenariosβ
Scenario 1: "My mobile menu is broken"β
You: "Test the mobile menu on iPhone 13"
AI will:
- Resize to iPhone 13
- Test menu functionality
- Report issues
Scenario 2: "Layout breaks on tablets"β
You: "Test on iPad Pro 11 and iPad Mini, take screenshots"
AI will:
- Test on iPad Pro 11 β screenshot
- Test on iPad Mini β screenshot
- Compare layouts
Scenario 3: "Need full responsive test"β
You: "Test mobile, tablet, desktop responsiveness with screenshots"
AI will:
- iPhone 13 β screenshot
- iPad Pro 11 β screenshot
- Desktop Chrome β screenshot
- Report on layout changes
Scenario 4: "Button too small on small screens"β
You: "Test the checkout button on iPhone SE and iPhone 13"
AI will:
- Test on iPhone SE (smallest)
- Test on iPhone 13 (standard)
- Compare button sizes
π‘ Pro Tipsβ
1. Always Specify Device Modelβ
β "Test on iPhone" (which one?) β "Test on iPhone 13" (specific)
2. Use Real Device Namesβ
β "iPhone 13", "Galaxy S24", "Pixel 7" β "Modern phone", "Latest Android"
3. Request Screenshotsβ
β "Test on iPad and take a screenshot" β "Show me mobile view (screenshot)"
4. Test Orientationsβ
β "Test in both portrait and landscape" β "Rotate to landscape on iPhone 13"
5. Test Edge Casesβ
β "Test on iPhone SE (small) and iPad Pro 12.9 (large)"
π Getting Started Checklistβ
- Navigate to your site
- Test on iPhone 13 (most common mobile)
- Test on iPad Pro 11 (common tablet)
- Test on Desktop Chrome (desktop)
- Request screenshots of each
- Test landscape orientation on mobile
- Test on smallest device (iPhone SE)
- Test on largest tablet (iPad Pro 12.9)
π More Informationβ
- Full Device List: Run
node scripts/list-devices.cjs - Detailed Prompts: See
Resize-Prompts-Guide.md - Tool Documentation: See
Supported-Tools.mdx
Remember: Just use natural language! The AI will translate your intent into the correct playwright_resize commands automatically. π