[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71NSS87KFWAFGRKR5ZH25CH":3,"skill-same:01M71NSS87KFWAFGRKR5ZH25CH":87},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":14,"repositoryHtmlUrl":51,"repositoryHomepageUrl":52,"ownerHtmlUrl":53,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":54,"install":55,"resources":68},"01M71NSS87KFWAFGRKR5ZH25CH","mobile-testing",null,"Test native, React Native, hybrid, and Flutter mobile apps with Appium 3.x, Detox, Maestro, and Patrol. Covers device farm setup (BrowserStack, Sauce Labs), gesture simulation, deep link and cold-start testing, push notifications, biometric (Face ID) auth, offline\u002Fpoor-network simulation, and iOS\u002FAndroid permission dialog handling. Use when: \"mobile test,\" \"Appium,\" \"Detox,\" \"Maestro,\" \"Patrol,\" \"Flutter test,\" \"iOS test,\" \"Android test,\" \"device farm,\" \"deep link,\" \"biometric,\" \"Face ID,\" \"permission dialog,\" \"React Native test.\" Not for: device\u002Fbrowser matrix strategy in the abstract — use cross-browser-testing; app startup\u002Fmemory\u002Fbattery profiling depth — use performance-testing; mobile screenshot diffing — use visual-testing. Related: ci-cd-integration, cross-browser-testing, performance-testing, test-data-management, test-reliability.","pattanation\u002FNorvik","pattanation","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F235419268?v=4","01M71M5THHYYB15ME8R2E4FCZG","Patta","01M71M5TJM1NDM992M8PDKYR2K",0,"MIT","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fmobile-testing\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"mobile testing","mobile","testing","react","farm","when","apps","dialog","patrol","cold-start","ci","performance","appium","memory","auth","cold","reliability","deep","app","browser-testing","2026-11-10 10:56:23",false,"---\nname: mobile-testing\ndescription: >-\n  Test native, React Native, hybrid, and Flutter mobile apps with Appium 3.x, Detox,\n  Maestro, and Patrol. Covers device farm setup (BrowserStack, Sauce Labs), gesture\n  simulation, deep link and cold-start testing, push notifications, biometric (Face ID)\n  auth, offline\u002Fpoor-network simulation, and iOS\u002FAndroid permission dialog handling.\n  Use when: \"mobile test,\" \"Appium,\" \"Detox,\" \"Maestro,\" \"Patrol,\" \"Flutter test,\"\n  \"iOS test,\" \"Android test,\" \"device farm,\" \"deep link,\" \"biometric,\" \"Face ID,\"\n  \"permission dialog,\" \"React Native test.\"\n  Not for: device\u002Fbrowser matrix strategy in the abstract — use cross-browser-testing;\n  app startup\u002Fmemory\u002Fbattery profiling depth — use performance-testing; mobile screenshot\n  diffing — use visual-testing.\n  Related: ci-cd-integration, cross-browser-testing, performance-testing, test-data-management, test-reliability.\nlicense: MIT\nmetadata:\n  author: kindlmann\n  version: \"2.0\"\n  category: automation\n---\n\n\u003Cobjective>\nA login test that passes on the iOS simulator but hangs forever on a real device because a location-permission dialog it never accounted for is sitting on top of the screen — that is the mobile failure mode this skill prevents. It delivers a runnable suite across native, React Native, hybrid, and Flutter apps with the right framework per app type, real-device-vs-emulator tiers, and first-class handling for the scenarios web frameworks cannot reach: deep links, push, biometrics, offline, and permission dialogs.\n\u003C\u002Fobjective>\n\n---\n\n## Quick Route\n\n| Situation | Go to |\n| --- | --- |\n| Picking a framework for an app type | [Framework Decision](#framework-decision) |\n| Native\u002Fhybrid Appium setup + selectors + gestures | [Appium 3.x](#appium-3x) → `references\u002Fappium-patterns.md` |\n| React Native suite | [Detox](#detox-for-react-native) → `references\u002Fdetox-and-maestro.md` |\n| Low-friction cross-platform YAML | [Maestro](#maestro-cross-platform-yaml) → `references\u002Fdetox-and-maestro.md` |\n| Cloud device matrix (P0\u002FP1\u002FP2) | [Device Farm](#device-farm-integration) → `references\u002Fdevice-farm.md` |\n| Deep links, push, biometrics, offline, permissions | [Mobile-Specific Patterns](#mobile-specific-testing-patterns) → `references\u002Fmobile-patterns.md` |\n\n---\n\n## Discovery Questions\n\nCheck `.agents\u002Fqa-project-context.md` in the project root first — if it exists, use it and skip any question it already answers.\n\n1. **App type:** Native iOS\u002FAndroid, React Native, Flutter, or hybrid (Cordova\u002FCapacitor)? This picks the framework (see [Framework Decision](#framework-decision)).\n2. **Real devices or emulators?** Real devices for release validation and performance; emulators\u002Fsimulators for development speed. Most teams need both.\n3. **Device farm:** BrowserStack App Automate, Sauce Labs, AWS Device Farm, or self-hosted? Budget and CI integration decide.\n4. **OS coverage:** Minimum iOS and Android versions? Read analytics for actual user distribution before building the matrix — do not target the newest hardware by default.\n5. **Existing CI pipeline:** Where do mobile tests run — local machines, CI runners with emulators, or cloud device farms?\n6. **App distribution:** How are test builds distributed — TestFlight, Firebase App Distribution, direct APK\u002FIPA? This determines how the farm gets the binary.\n\n---\n\n## Core Principles\n\n1. **Real devices for release, emulators for speed.** Emulators miss touch latency, GPS drift, camera quirks, push notification timing, and battery behavior. Use emulators in development and PR checks; reserve real device farms for nightly and release pipelines.\n\n2. **Gesture simulation is framework-specific.** Appium W3C Actions, Detox device APIs, and platform-native gesture recognizers each handle swipes, pinches, and long-presses differently. Do not assume cross-framework portability.\n\n3. **Deep links and push notifications are unique to mobile.** Web testing frameworks cannot reach them. Dedicated patterns exist for each — treat them as first-class scenarios, not afterthoughts.\n\n4. **Permission dialogs break assumptions.** iOS and Android handle runtime permissions differently. Camera, location, contacts, and notification permissions need explicit handling in setup or the test hangs waiting for a dialog it cannot dismiss.\n\n5. **Network conditions matter more on mobile.** Users switch between WiFi, LTE, 3G, and offline. Test degraded and absent connectivity — not just happy-path WiFi.\n\n6. **Anything platform-specific needs a platform guard.** A shell command, selector, or device API that works on Android may not exist on iOS (and vice versa). Branch on `platformName` before issuing platform-specific commands, or the test fails silently on the other platform.\n\n---\n\n## Framework Decision\n\n| App type | Primary choice | Why |\n| --- | --- | --- |\n| Native iOS\u002FAndroid, hybrid | **Appium 3.x** | Driver-based, mature ecosystem, deepest native + gesture coverage |\n| React Native | **Detox** | Gray-box, synchronizes with the RN bridge, fastest feedback, least flake |\n| Cross-platform, mixed-skill team | **Maestro** | Declarative YAML, native AI commands, lowest authoring friction |\n| Flutter | **Patrol 4.x** | Flutter-native integration testing; 4.0 added web support (via Playwright) and richer native interaction APIs |\n\n---\n\n## Appium 3.x\n\nAppium 3.x (current stable line, 2026) keeps the driver-based plugin architecture introduced in 2.0 — the server is a thin shell; drivers provide platform-specific automation. Upgrade from 2.x is mostly a Node-version bump and dependency cleanup; most capabilities carry over, but Appium 3 dropped several long-deprecated commands and changed plugin\u002Fdriver handling, so check the 3.x migration notes for removed legacy commands.\n\n**Selector priority:** Accessibility ID > platform-specific selector (iOS class chain \u002F Android UIAutomator) > XPath (last resort — slow, brittle).\n\n**Guard platform-specific commands.** Branch on `platformName` before any platform-only shell command, selector strategy, or device API:\n\n```typescript\nif (driver.capabilities.platformName === 'Android') {\n  \u002F\u002F UIAutomator selectors, `mobile: shell` network toggles\n} else {\n  \u002F\u002F iOS class chain \u002F predicate selectors, `mobile: alert`, device-farm network profiles\n}\n```\n\nSee `references\u002Fappium-patterns.md` for install\u002Fdriver commands, W3C Android\u002FiOS capabilities, the four element-location strategies, and the full gesture set (scroll, swipe, pinch, long-press, double-tap).\n\n---\n\n## Detox for React Native\n\nDetox is a gray-box framework. It synchronizes with the React Native bridge, waiting for animations, network requests, and timers to settle before acting — this eliminates most timing flakiness.\n\n> Detox supports React Native 0.77–0.84, including the New Architecture. Use `by.id`\u002F`by.text` matchers as the default; reach for `by.type()` only to relax a brittle exact-class assertion.\n\n**Biometric ordering rule:** enroll the biometric with `device.setBiometricEnrollment(true)` *before* calling `device.matchBiometric()`. Matching without prior enrollment is a no-op and the auth flow never advances.\n\n**Push notifications are iOS-only via `sendUserNotification`.** On Android, Detox push handling is limited and `sendUserNotification` behavior differs — drive Android push through FCM\u002Fthe notification shade (Appium pattern) instead of assuming parity.\n\nSee `references\u002Fdetox-and-maestro.md` for the `.detoxrc.js` config, login-flow test patterns, device APIs (biometric, shake, orientation, location, deep link, notifications), and CI build\u002Ftest commands.\n\n---\n\n## Maestro (Cross-Platform YAML)\n\nMaestro CLI 2.5.x (Apr 2026) is the lowest-friction option for cross-platform mobile e2e — declarative YAML flows, native AI-assisted commands (`assertVisible: 'login button'` works without selectors), running against simulators, real devices, and Maestro Cloud. Best for teams that don't want Appium's Java\u002FJS stack or RN-only Detox tooling.\n\n```bash\n# macOS (preferred — lower friction, brew-managed):\nbrew tap mobile-dev-inc\u002Ftap && brew install mobile-dev-inc\u002Ftap\u002Fmaestro\n# Or the cross-platform curl one-liner:\ncurl -Ls \"https:\u002F\u002Fget.maestro.mobile.dev\" | bash\n```\n\nWhen to choose Maestro: cross-platform suite, mixed-skill team, fast iteration. When not: deep native gesture or biometric coverage (Appium\u002FDetox win), or when you need fine-grained programmatic control.\n\nSee `references\u002Fdetox-and-maestro.md` for an annotated login flow YAML (with `${MAESTRO_TEST_PASSWORD}` env-var injection).\n\n---\n\n## Device Farm Integration\n\nProvision a tiered device matrix from analytics, not from the newest hardware. Typical split: 60% of tests on P0 devices, 30% on P1, 10% on P2. Test apps are uploaded to the farm and referenced by capability (`app` URL \u002F `storage:filename`).\n\nSee `references\u002Fdevice-farm.md` for BrowserStack and Sauce Labs capability objects, the authenticated app-upload `curl`, and the GitHub Actions device-matrix strategy (P0\u002FP1\u002FP2 across iOS and Android).\n\n---\n\n## Mobile-Specific Testing Patterns\n\nThese scenarios cannot be tested by web frameworks. Treat each as a first-class flow.\n\n- **Deep links** — cold start (terminate then deep-link), authenticated redirect, and running-app navigation.\n- **Push notifications** — Detox `sendUserNotification` (iOS) and Appium + FCM test-endpoint \u002F notification-shade patterns (Android).\n- **Offline \u002F poor network** — platform-guarded: Android `mobile: shell` airplane-mode, device-farm network profiles, iOS conditioner \u002F Detox proxy notes.\n- **Permission dialogs** — `autoGrantPermissions` (Android), explicit `mobile: alert` (`action: accept`\u002F`dismiss`) and `-ios predicate string` handling (iOS).\n- **Biometrics** — Detox `setBiometricEnrollment(true)` then `matchBiometric()` (enroll before match).\n- **App lifecycle** — background\u002Fforeground, cold start, fresh install vs. resume.\n\nSee `references\u002Fmobile-patterns.md` for the runnable code, including the platform-guarded airplane-mode snippet and the iOS-vs-Android permission split.\n\n---\n\n## Anti-Patterns\n\n**Running all tests on emulators only.** Emulators do not reproduce touch latency, camera behavior, GPS drift, or push timing. Use emulators for development velocity; run release suites on real devices via a device farm.\n\n**Hardcoded device names in tests.** `await driver.$('Samsung Galaxy S24 - Home')` breaks when the device changes. Use accessibility IDs and platform-agnostic selectors.\n\n**Platform-specific commands with no platform check.** `cmd connectivity airplane-mode` only exists on newer Android and not at all on iOS; firing it unguarded fails silently on the other platform. Branch on `platformName` first (see [Appium 3.x](#appium-3x)).\n\n**Ignoring app permissions.** Tests that assume permissions are pre-granted fail on first install or when testing denial flows. Handle permissions explicitly per platform.\n\n**Matching a biometric without enrolling it.** `matchBiometric()` with no prior `setBiometricEnrollment(true)` is a no-op; the auth never completes and the test times out on the login screen.\n\n**Testing only portrait orientation.** Many apps break in landscape. Test critical flows in both orientations, especially on tablets.\n\n**Skipping offline scenarios.** Mobile users lose connectivity constantly. If the app does not handle offline gracefully, prove it; if it does, verify the behavior.\n\n**Using `sleep()` instead of framework synchronization.** Detox auto-waits; Appium has implicit and explicit waits. Sleep-based synchronization is slow and flaky on both.\n\n**Ignoring app size and startup time.** A 200MB app with a 6-second cold start is a real UX issue. Include non-functional checks for binary size and launch time. (For deep startup\u002Fmemory\u002Fbattery profiling, use `performance-testing`.)\n\n---\n\n## Verification\n\nRun the smallest check for whichever framework you set up; each should exit 0 and print the expected output before you call the suite done.\n\n```bash\n# Appium: drivers installed and server reachable\nappium driver list --installed        # lists uiautomator2 and\u002For xcuitest\nappium --version                       # prints the 3.x version\n\n# Detox: one config builds and a smoke spec passes\ndetox test --configuration ios.sim.debug --headless   # green run on the iOS simulator\n\n# Maestro: a single flow runs end-to-end\nmaestro test flows\u002Flogin.yaml          # prints \"Flow Passed\"\n```\n\n---\n\n## Done When\n\n- Device matrix defined and committed (e.g. `device-matrix.md` or a CI matrix block): real devices + emulators per platform, tiered P0\u002FP1\u002FP2 from analytics.\n- Test suite runs against both iOS and Android from a single CI configuration (matrix strategy or paired jobs).\n- A gesture test (swipe\u002Fscroll\u002Flong-press) and a deep-link cold-start test (terminate → deep-link → assert target screen) exist as committed test files — list their paths.\n- Push notification coverage is either a committed test file path OR a tracked deferral ticket ID (e.g. \"JIRA-1234: deferred until FCM test endpoint available\") — not a bare code comment.\n- `appium driver list --installed` \u002F `detox test --configuration ios.sim.debug` \u002F `maestro test flows\u002Flogin.yaml` (whichever applies) exits 0 locally.\n- CI runs tests on at least one emulator per platform (iOS simulator + Android emulator) on every PR, with real-device-farm runs gated to nightly or release branches.\n\n## Reference Files (in `references\u002F`)\n\n- **appium-patterns.md** — Appium 3.x install, W3C capabilities, element-location strategies, gesture simulation, and the platform-guard pattern.\n- **detox-and-maestro.md** — Detox `.detoxrc.js` config, test patterns, device APIs (biometric ordering, push iOS-only note), CI commands; plus Maestro install (brew + curl) and YAML flow.\n- **device-farm.md** — BrowserStack and Sauce Labs capabilities, authenticated app-upload curl, and the GitHub Actions P0\u002FP1\u002FP2 device matrix.\n- **mobile-patterns.md** — Runnable code for deep links, push, platform-guarded network simulation, iOS\u002FAndroid permission dialogs, and app lifecycle.\n\n## Related Skills\n\n- **ci-cd-integration** — Pipeline configuration for mobile test execution, artifact management, device-farm CI connectors.\n- **cross-browser-testing** — Device-matrix design borrows the browser-matrix methodology; go there for matrix strategy in the abstract, here for the mobile execution.\n- **performance-testing** — Mobile non-functional depth: app startup time, memory usage, battery drain.\n- **visual-testing** — Screenshot\u002Fpixel-diff regression, including mobile viewport captures.\n- **test-data-management** — Seed data strategies for mobile apps; backend state setup via API.\n- **test-reliability** — Runtime flaky-test healing for mobile timing, device state, and network conditions.\n","\u003Cobjective>\nA login test that passes on the iOS simulator but hangs forever on a real device because a location-permission dialog it never accounted for is sitting on top of the screen — that is the mobile failure mode this skill prevents. It delivers a runnable suite across native, React Native, hybrid, and Flutter apps with the right framework per app type, real-device-vs-emulator tiers, and first-class handling for the scenarios web frameworks cannot reach: deep links, push, biometrics, offline, and permission dialogs.\n\u003C\u002Fobjective>\n\n---\n\n## Quick Route\n\n| Situation | Go to |\n| --- | --- |\n| Picking a framework for an app type | [Framework Decision](#framework-decision) |\n| Native\u002Fhybrid Appium setup + selectors + gestures | [Appium 3.x](#appium-3x) → `references\u002Fappium-patterns.md` |\n| React Native suite | [Detox](#detox-for-react-native) → `references\u002Fdetox-and-maestro.md` |\n| Low-friction cross-platform YAML | [Maestro](#maestro-cross-platform-yaml) → `references\u002Fdetox-and-maestro.md` |\n| Cloud device matrix (P0\u002FP1\u002FP2) | [Device Farm](#device-farm-integration) → `references\u002Fdevice-farm.md` |\n| Deep links, push, biometrics, offline, permissions | [Mobile-Specific Patterns](#mobile-specific-testing-patterns) → `references\u002Fmobile-patterns.md` |\n\n---\n\n## Discovery Questions\n\nCheck `.agents\u002Fqa-project-context.md` in the project root first — if it exists, use it and skip any question it already answers.\n\n1. **App type:** Native iOS\u002FAndroid, React Native, Flutter, or hybrid (Cordova\u002FCapacitor)? This picks the framework (see [Framework Decision](#framework-decision)).\n2. **Real devices or emulators?** Real devices for release validation and performance; emulators\u002Fsimulators for development speed. Most teams need both.\n3. **Device farm:** BrowserStack App Automate, Sauce Labs, AWS Device Farm, or self-hosted? Budget and CI integration decide.\n4. **OS coverage:** Minimum iOS and Android versions? Read analytics for actual user distribution before building the matrix — do not target the newest hardware by default.\n5. **Existing CI pipeline:** Where do mobile tests run — local machines, CI runners with emulators, or cloud device farms?\n6. **App distribution:** How are test builds distributed — TestFlight, Firebase App Distribution, direct APK\u002FIPA? This determines how the farm gets the binary.\n\n---\n\n## Core Principles\n\n1. **Real devices for release, emulators for speed.** Emulators miss touch latency, GPS drift, camera quirks, push notification timing, and battery behavior. Use emulators in development and PR checks; reserve real device farms for nightly and release pipelines.\n\n2. **Gesture simulation is framework-specific.** Appium W3C Actions, Detox device APIs, and platform-native gesture recognizers each handle swipes, pinches, and long-presses differently. Do not assume cross-framework portability.\n\n3. **Deep links and push notifications are unique to mobile.** Web testing frameworks cannot reach them. Dedicated patterns exist for each — treat them as first-class scenarios, not afterthoughts.\n\n4. **Permission dialogs break assumptions.** iOS and Android handle runtime permissions differently. Camera, location, contacts, and notification permissions need explicit handling in setup or the test hangs waiting for a dialog it cannot dismiss.\n\n5. **Network conditions matter more on mobile.** Users switch between WiFi, LTE, 3G, and offline. Test degraded and absent connectivity — not just happy-path WiFi.\n\n6. **Anything platform-specific needs a platform guard.** A shell command, selector, or device API that works on Android may not exist on iOS (and vice versa). Branch on `platformName` before issuing platform-specific commands, or the test fails silently on the other platform.\n\n---\n\n## Framework Decision\n\n| App type | Primary choice | Why |\n| --- | --- | --- |\n| Native iOS\u002FAndroid, hybrid | **Appium 3.x** | Driver-based, mature ecosystem, deepest native + gesture coverage |\n| React Native | **Detox** | Gray-box, synchronizes with the RN bridge, fastest feedback, least flake |\n| Cross-platform, mixed-skill team | **Maestro** | Declarative YAML, native AI commands, lowest authoring friction |\n| Flutter | **Patrol 4.x** | Flutter-native integration testing; 4.0 added web support (via Playwright) and richer native interaction APIs |\n\n---\n\n## Appium 3.x\n\nAppium 3.x (current stable line, 2026) keeps the driver-based plugin architecture introduced in 2.0 — the server is a thin shell; drivers provide platform-specific automation. Upgrade from 2.x is mostly a Node-version bump and dependency cleanup; most capabilities carry over, but Appium 3 dropped several long-deprecated commands and changed plugin\u002Fdriver handling, so check the 3.x migration notes for removed legacy commands.\n\n**Selector priority:** Accessibility ID > platform-specific selector (iOS class chain \u002F Android UIAutomator) > XPath (last resort — slow, brittle).\n\n**Guard platform-specific commands.** Branch on `platformName` before any platform-only shell command, selector strategy, or device API:\n\n```typescript\nif (driver.capabilities.platformName === 'Android') {\n  \u002F\u002F UIAutomator selectors, `mobile: shell` network toggles\n} else {\n  \u002F\u002F iOS class chain \u002F predicate selectors, `mobile: alert`, device-farm network profiles\n}\n```\n\nSee `references\u002Fappium-patterns.md` for install\u002Fdriver commands, W3C Android\u002FiOS capabilities, the four element-location strategies, and the full gesture set (scroll, swipe, pinch, long-press, double-tap).\n\n---\n\n## Detox for React Native\n\nDetox is a gray-box framework. It synchronizes with the React Native bridge, waiting for animations, network requests, and timers to settle before acting — this eliminates most timing flakiness.\n\n> Detox supports React Native 0.77–0.84, including the New Architecture. Use `by.id`\u002F`by.text` matchers as the default; reach for `by.type()` only to relax a brittle exact-class assertion.\n\n**Biometric ordering rule:** enroll the biometric with `device.setBiometricEnrollment(true)` *before* calling `device.matchBiometric()`. Matching without prior enrollment is a no-op and the auth flow never advances.\n\n**Push notifications are iOS-only via `sendUserNotification`.** On Android, Detox push handling is limited and `sendUserNotification` behavior differs — drive Android push through FCM\u002Fthe notification shade (Appium pattern) instead of assuming parity.\n\nSee `references\u002Fdetox-and-maestro.md` for the `.detoxrc.js` config, login-flow test patterns, device APIs (biometric, shake, orientation, location, deep link, notifications), and CI build\u002Ftest commands.\n\n---\n\n## Maestro (Cross-Platform YAML)\n\nMaestro CLI 2.5.x (Apr 2026) is the lowest-friction option for cross-platform mobile e2e — declarative YAML flows, native AI-assisted commands (`assertVisible: 'login button'` works without selectors), running against simulators, real devices, and Maestro Cloud. Best for teams that don't want Appium's Java\u002FJS stack or RN-only Detox tooling.\n\n```bash\n# macOS (preferred — lower friction, brew-managed):\nbrew tap mobile-dev-inc\u002Ftap && brew install mobile-dev-inc\u002Ftap\u002Fmaestro\n# Or the cross-platform curl one-liner:\ncurl -Ls \"https:\u002F\u002Fget.maestro.mobile.dev\" | bash\n```\n\nWhen to choose Maestro: cross-platform suite, mixed-skill team, fast iteration. When not: deep native gesture or biometric coverage (Appium\u002FDetox win), or when you need fine-grained programmatic control.\n\nSee `references\u002Fdetox-and-maestro.md` for an annotated login flow YAML (with `${MAESTRO_TEST_PASSWORD}` env-var injection).\n\n---\n\n## Device Farm Integration\n\nProvision a tiered device matrix from analytics, not from the newest hardware. Typical split: 60% of tests on P0 devices, 30% on P1, 10% on P2. Test apps are uploaded to the farm and referenced by capability (`app` URL \u002F `storage:filename`).\n\nSee `references\u002Fdevice-farm.md` for BrowserStack and Sauce Labs capability objects, the authenticated app-upload `curl`, and the GitHub Actions device-matrix strategy (P0\u002FP1\u002FP2 across iOS and Android).\n\n---\n\n## Mobile-Specific Testing Patterns\n\nThese scenarios cannot be tested by web frameworks. Treat each as a first-class flow.\n\n- **Deep links** — cold start (terminate then deep-link), authenticated redirect, and running-app navigation.\n- **Push notifications** — Detox `sendUserNotification` (iOS) and Appium + FCM test-endpoint \u002F notification-shade patterns (Android).\n- **Offline \u002F poor network** — platform-guarded: Android `mobile: shell` airplane-mode, device-farm network profiles, iOS conditioner \u002F Detox proxy notes.\n- **Permission dialogs** — `autoGrantPermissions` (Android), explicit `mobile: alert` (`action: accept`\u002F`dismiss`) and `-ios predicate string` handling (iOS).\n- **Biometrics** — Detox `setBiometricEnrollment(true)` then `matchBiometric()` (enroll before match).\n- **App lifecycle** — background\u002Fforeground, cold start, fresh install vs. resume.\n\nSee `references\u002Fmobile-patterns.md` for the runnable code, including the platform-guarded airplane-mode snippet and the iOS-vs-Android permission split.\n\n---\n\n## Anti-Patterns\n\n**Running all tests on emulators only.** Emulators do not reproduce touch latency, camera behavior, GPS drift, or push timing. Use emulators for development velocity; run release suites on real devices via a device farm.\n\n**Hardcoded device names in tests.** `await driver.$('Samsung Galaxy S24 - Home')` breaks when the device changes. Use accessibility IDs and platform-agnostic selectors.\n\n**Platform-specific commands with no platform check.** `cmd connectivity airplane-mode` only exists on newer Android and not at all on iOS; firing it unguarded fails silently on the other platform. Branch on `platformName` first (see [Appium 3.x](#appium-3x)).\n\n**Ignoring app permissions.** Tests that assume permissions are pre-granted fail on first install or when testing denial flows. Handle permissions explicitly per platform.\n\n**Matching a biometric without enrolling it.** `matchBiometric()` with no prior `setBiometricEnrollment(true)` is a no-op; the auth never completes and the test times out on the login screen.\n\n**Testing only portrait orientation.** Many apps break in landscape. Test critical flows in both orientations, especially on tablets.\n\n**Skipping offline scenarios.** Mobile users lose connectivity constantly. If the app does not handle offline gracefully, prove it; if it does, verify the behavior.\n\n**Using `sleep()` instead of framework synchronization.** Detox auto-waits; Appium has implicit and explicit waits. Sleep-based synchronization is slow and flaky on both.\n\n**Ignoring app size and startup time.** A 200MB app with a 6-second cold start is a real UX issue. Include non-functional checks for binary size and launch time. (For deep startup\u002Fmemory\u002Fbattery profiling, use `performance-testing`.)\n\n---\n\n## Verification\n\nRun the smallest check for whichever framework you set up; each should exit 0 and print the expected output before you call the suite done.\n\n```bash\n# Appium: drivers installed and server reachable\nappium driver list --installed        # lists uiautomator2 and\u002For xcuitest\nappium --version                       # prints the 3.x version\n\n# Detox: one config builds and a smoke spec passes\ndetox test --configuration ios.sim.debug --headless   # green run on the iOS simulator\n\n# Maestro: a single flow runs end-to-end\nmaestro test flows\u002Flogin.yaml          # prints \"Flow Passed\"\n```\n\n---\n\n## Done When\n\n- Device matrix defined and committed (e.g. `device-matrix.md` or a CI matrix block): real devices + emulators per platform, tiered P0\u002FP1\u002FP2 from analytics.\n- Test suite runs against both iOS and Android from a single CI configuration (matrix strategy or paired jobs).\n- A gesture test (swipe\u002Fscroll\u002Flong-press) and a deep-link cold-start test (terminate → deep-link → assert target screen) exist as committed test files — list their paths.\n- Push notification coverage is either a committed test file path OR a tracked deferral ticket ID (e.g. \"JIRA-1234: deferred until FCM test endpoint available\") — not a bare code comment.\n- `appium driver list --installed` \u002F `detox test --configuration ios.sim.debug` \u002F `maestro test flows\u002Flogin.yaml` (whichever applies) exits 0 locally.\n- CI runs tests on at least one emulator per platform (iOS simulator + Android emulator) on every PR, with real-device-farm runs gated to nightly or release branches.\n\n## Reference Files (in `references\u002F`)\n\n- **appium-patterns.md** — Appium 3.x install, W3C capabilities, element-location strategies, gesture simulation, and the platform-guard pattern.\n- **detox-and-maestro.md** — Detox `.detoxrc.js` config, test patterns, device APIs (biometric ordering, push iOS-only note), CI commands; plus Maestro install (brew + curl) and YAML flow.\n- **device-farm.md** — BrowserStack and Sauce Labs capabilities, authenticated app-upload curl, and the GitHub Actions P0\u002FP1\u002FP2 device matrix.\n- **mobile-patterns.md** — Runnable code for deep links, push, platform-guarded network simulation, iOS\u002FAndroid permission dialogs, and app lifecycle.\n\n## Related Skills\n\n- **ci-cd-integration** — Pipeline configuration for mobile test execution, artifact management, device-farm CI connectors.\n- **cross-browser-testing** — Device-matrix design borrows the browser-matrix methodology; go there for matrix strategy in the abstract, here for the mobile execution.\n- **performance-testing** — Mobile non-functional depth: app startup time, memory usage, battery drain.\n- **visual-testing** — Screenshot\u002Fpixel-diff regression, including mobile viewport captures.\n- **test-data-management** — Seed data strategies for mobile apps; backend state setup via API.\n- **test-reliability** — Runtime flaky-test healing for mobile timing, device state, and network conditions.\n",{"name":5,"license":15,"metadata":44,"description":7},{"author":45,"version":46,"category":47},"kindlmann","2.0","automation","claude\u002Finstall-gsd-build-foQdV","d86cd127f527124b5fd0fd0bc679a4d79b7d01d7",".agents\u002Fskills\u002Fmobile-testing","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik","https:\u002F\u002Fnorvik-orpin.vercel.app","https:\u002F\u002Fgithub.com\u002Fpattanation","2026-07-17 11:17:04",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add pattanation\u002FNorvik --skill mobile-testing",{"tool":61,"command":62},"bunx","bunx skills add pattanation\u002FNorvik --skill mobile-testing",{"tool":64,"command":65},"pnpm","pnpm dlx skills add pattanation\u002FNorvik --skill mobile-testing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fmobile-testing\u002FSKILL.md",true,[69,75,79,83],{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fappium-patterns.md","REFERENCE","参考文档",3837,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fmobile-testing\u002Freferences\u002Fappium-patterns.md",{"path":76,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Fdetox-and-maestro.md",4444,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fmobile-testing\u002Freferences\u002Fdetox-and-maestro.md",{"path":80,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002Fdevice-farm.md",2378,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fmobile-testing\u002Freferences\u002Fdevice-farm.md",{"path":84,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":85,"sourceHtmlUrl":86},"references\u002Fmobile-patterns.md",5589,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fmobile-testing\u002Freferences\u002Fmobile-patterns.md",[88,97,104,111,136,160],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":92,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":96},"01M73Z1NPMJ667E0DSPBS9FH0B","jetson-set-target","Switch the active Jetson target-platform pointer to an existing profile YAML. Use before customize\u002Fbuild\u002Fflash to change target; not for authoring profiles — use jetson-init-target instead.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fjetson-set-target\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":92,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":96},"01M73YC29YWGCW521P7B0NM3HQ","earth2studio-data-fetch","Fetch weather\u002Fclimate data via Earth2Studio data sources for specific variables and times. Do NOT use for inference pipelines, model discovery, or installation.","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fearth2studio-data-fetch\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":92,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":96},"01M73YBNHMHFDFP83MAVGQQ92N","earth2studio-create-datasource","Create and validate Earth2Studio data source wrappers (DataSource, ForecastSource, DataFrameSource, ForecastFrameSource) from remote stores. Do NOT use for fetching data with existing sources, model inference, or installation tasks.","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fearth2studio-create-datasource\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":92,"licenseFileUrl":115,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":135},"01M71QDV4DM8T19HEHWATEF1K4","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[119,21,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134],"webapp","webapp testing","local","screenshots","for","applications","browser","ui","behavior","web","playwright","with","frontend","debugging","toolkit","logs","2026-11-10 13:02:02",{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":92,"licenseFileUrl":140,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":135},"01M71QDH2GGMXGA9105C9W1N7B","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fweb-artifacts-builder\u002FSKILL.md",[],[144,128,145,146,147,148,149,150,151,22,152,153,123,154,155,131,156,157,158,159],"web artifacts builder","artifacts","artifacts builder","builder","multi","state","routing","state management","single-file","css","Tailwind","ui components","single","use","file","components",{"skillNo":161,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":164,"sourceHtmlUrl":165,"categories":166,"keywords":167,"publishedAt":135},"01M71QD9T2XC3EWMQNN9ACNWQ1","vueuse-functions","Apply VueUse composables where appropriate to build concise, maintainable Vue.js \u002F Nuxt features.","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fvueuse-functions\u002FLICENSE.md","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fvueuse-functions\u002FSKILL.md",[],[168,169,170,171,172,173,174,175,176,177,178,179,180,181],"vueuse","vueuse functions","functions","composables","project","nuxt","apply","github","concise","build","https","features","vue","js"]