Skip to main content

Device Testing Quick Reference

🎯 Quick Commands​

Just Tell the AI:​

What You WantNatural 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"

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"

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?"

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:

  1. Resize to iPhone 13
  2. Test menu functionality
  3. Report issues

Scenario 2: "Layout breaks on tablets"​

You: "Test on iPad Pro 11 and iPad Mini, take screenshots"

AI will:

  1. Test on iPad Pro 11 β†’ screenshot
  2. Test on iPad Mini β†’ screenshot
  3. Compare layouts

Scenario 3: "Need full responsive test"​

You: "Test mobile, tablet, desktop responsiveness with screenshots"

AI will:

  1. iPhone 13 β†’ screenshot
  2. iPad Pro 11 β†’ screenshot
  3. Desktop Chrome β†’ screenshot
  4. 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:

  1. Test on iPhone SE (smallest)
  2. Test on iPhone 13 (standard)
  3. 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. πŸŽ‰