| title | Device & Environment |
|---|---|
| description | Simulate device states and environmental conditions including network connectivity, camera input, and zoom controls |
Description: Mock camera input
Provides mock camera input by setting a predefined image. Useful for testing camera-based features. For the time being, it is only supported in Android devices.
Examples:
- set-camera-image https://example.com/image.jpg
Description: Simulate offline mode
Simulates loss of network connectivity, allowing testing of offline functionality and error handling.
Examples:
- Test offline error messages
- Verify cached content display
- Check offline form submission
Description: Restore online connection
Restores network connectivity after simulating offline mode, allowing testing of reconnection behavior.
Examples:
- Restore network connection
- Test data synchronization on reconnect
- Verify online functionality resume
Description: Adjust viewport zoom
Adjusts the browser or app viewport zoom level. Useful for testing responsive design and accessibility features.
Examples:
- Zoom in to 125% for better focus
Description: Adjust viewport zoom
Adjusts the browser or app viewport zoom level. Useful for testing responsive design and accessibility features.
Examples:
- Zoom out to 75% for better overview
- Start with online state
- Perform actions that require network
- Go offline
- Assert appropriate offline behavior
- Go online
- Assert reconnection and data sync
- Navigate to camera feature
- Set camera image with test image
- Trigger camera capture
- Assert image is processed correctly
- Start at normal zoom level
- Zoom in to test high zoom accessibility
- Assert content remains readable and functional
- Zoom out to test overview layouts
- Assert responsive breakpoints work correctly
- Offline testing: Essential for mobile apps and PWAs
- Camera simulation: Test image processing without physical camera
- Zoom testing: Verify accessibility compliance and responsive design
- Network state changes: Test how your app handles connection drops and restores
- Device-specific features: Some interactions may be platform-specific
- Camera image simulation currently only supported on Android
- Test device-specific UI patterns and behaviors
- Network state simulation works across all browser platforms
- Zoom controls test responsive design breakpoints
- Camera simulation coming soon
- Test iOS-specific interaction patterns