areas/software/mobile/skills/mobile-testing/SKILL.md
# Skill: Mobile Testing (Detox) ## When to load When writing E2E tests for mobile or configuring Detox. ## Detox Test Pattern ```typescript describe('Login flow', () => { beforeAll(async () => { await device.launchApp({ newInstance: true }); }); beforeEach(async () => { await device.reloadReactNative(); }); it('should login with valid credentials', async () => { await element(by.id('email-input')).typeText('[email protected]'); await element(by.id('password-input')).typeText('p
npx skillsauth add sawrus/agent-guides areas/software/mobile/skills/mobile-testingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
When writing E2E tests for mobile or configuring Detox.
describe('Login flow', () => {
beforeAll(async () => { await device.launchApp({ newInstance: true }); });
beforeEach(async () => { await device.reloadReactNative(); });
it('should login with valid credentials', async () => {
await element(by.id('email-input')).typeText('[email protected]');
await element(by.id('password-input')).typeText('password123');
await element(by.id('login-button')).tap();
await waitFor(element(by.id('home-screen')))
.toBeVisible()
.withTimeout(5000);
});
it('should show error for wrong password', async () => {
await element(by.id('email-input')).typeText('[email protected]');
await element(by.id('password-input')).typeText('wrongpassword');
await element(by.id('login-button')).tap();
await waitFor(element(by.id('error-message')))
.toBeVisible()
.withTimeout(3000);
});
});
Key: Use testID prop on elements for reliable Detox selection. Never rely on text content alone.
testing
QA Expert for writing E2E tests, test scenarios, test plans, and ensuring test coverage quality.
development
Expert UI/UX design intelligence for creating distinctive, high-craft, and mobile-first interfaces. Focuses on premium aesthetics, touch-first ergonomics, and Flutter performance.
development
Code Review Expert for static analysis, security auditing, architecture review, and ensuring code quality standards.
development
Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep watching open PRs so fresh review feedback is surfaced promptly. Use when the user asks Codex to monitor a PR, watch CI, handle review comments, or keep an eye on failures and feedback on an open PR.