detox-skill
This skill leverages the Detox framework to help you write and execute end-to-end tests for React Native mobile applications. It streamlines test generation and automation, enabling faster validation of app functionality across different devices and scenarios.
Detox-skill guides you through writing end-to-end tests for React Native apps using the Detox framework. You'll learn to structure test files, initialize the device with `device.launchApp()`, select elements using matchers like `by.id()` and `by.text()`, perform actions such as tap, scroll, and swipe, and add assertions to verify expected outcomes. Detox handles synchronization automatically, waiting for your app to reach an idle state before proceeding to the next action, which eliminates flaky tests caused by timing issues.
AI-generated summary based on this skill's SKILL.md
Decision gist · record as of 2026-07-24
Detox-skill guides you through writing end-to-end tests for React Native apps using the Detox framework. You'll learn to structure test files, initialize the device with `device.launchApp()`, select elements using matchers like `by.id()` and `by.text()`, perform actions such as tap, scroll, and swipe, and add assertions to verify expected outcomes. Detox handles synchronization automatically, waiting for your app to reach an idle state before proceeding to the next action, which eliminates flaky tests caused by timing issues.
Use it when
- Detox-skill covers the full syntax for element selection and interaction.
- Detox-skill teaches you to set up your testing environment using a `.detoxrc.js` configuration file, where you define your app's build path.
Verify before relying
Read SKILL.md below before installing (3 files). Open directory: indexed for reading, not audited.
Install
LambdaTest/agent-skills/detox-skill · repository language: Python
Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.
Frequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
How do I write Detox tests for React Native applications?
Detox-skill guides you through writing end-to-end tests for React Native apps using the Detox framework. You'll learn to structure test files, initialize the device with `device.launchApp()`, select elements using matchers like `by.id()` and `by.text()`, perform actions such as tap, scroll, and swipe, and add assertions to verify expected outcomes. Detox handles synchronization automatically, waiting for your app to reach an idle state before proceeding to the next action, which eliminates flaky tests caused by timing issues.
What element matchers and actions does Detox provide for test automation?
Detox-skill covers the full syntax for element selection and interaction. You can locate elements by ID using `by.id()`, by text content with `by.text()`, by type, or by label. Once selected, you can perform actions like `tap()`, `multiTap()`, `longPress()`, `scroll()`, `swipe()`, and `typeText()`. Detox also provides expectations and assertions—such as `expect(element(by.id('myButton'))).toBeVisible()` and `toHaveText()`—to validate that your app behaves correctly after each interaction.
How do I configure and run Detox tests locally on iOS simulators and Android emulators?
Detox-skill teaches you to set up your testing environment using a `.detoxrc.js` configuration file, where you define your app's build path, device type, and test runner settings. You'll learn to build your React Native app for testing, launch iOS simulators or Android emulators, and execute tests locally using Jest as your test runner. The skill covers best practices for device configuration, app initialization, and test organization to ensure reliable local test execution.
Can Detox tests be executed on cloud devices via TestMu AI or LambdaTest?
Yes, Detox-skill includes guidance on executing tests on cloud devices through services like LambdaTest and TestMu AI. You'll learn how to configure Detox to connect to cloud-hosted iOS and Android devices, manage cloud credentials, and run your test suite remotely. This approach enables you to test on a wider range of real devices and OS versions without maintaining local device infrastructure, accelerating your testing pipeline.
What are common Detox anti-patterns and best practices I should follow?
Detox-skill emphasizes best practices and anti-patterns to avoid when writing tests. Key recommendations include leveraging Detox's built-in synchronization rather than adding manual waits, using testID attributes for reliable element selection instead of fragile text or index-based matchers, organizing tests into logical suites, and keeping test logic focused on user workflows. The skill also covers debugging strategies for test failures, including log inspection and step-by-step execution, to help you troubleshoot React Native test issues efficiently.
How does Detox handle test synchronization and waiting in React Native e2e testing?
Detox-skill explains that Detox uses gray-box testing—combining black-box and white-box approaches—to synchronize with your React Native app automatically. The framework waits for the app to reach an idle state, monitoring native animations, network requests, and React Native's JavaScript bridge. This eliminates the need for manual `sleep()` or `wait()` calls, making tests more reliable and faster. You'll learn how Detox's synchronization engine prevents flaky tests and how to configure synchronization timeouts when needed for specific scenarios.
SKILL.md
Rendered from the published skill. Quoted content, verbatim.
Detox Automation Skill
You are a senior React Native QA engineer specializing in Detox.
Core Patterns
Basic Test
```javascript describe('Login', () => { beforeAll(async () => { await device.launchApp(); });
beforeEach(async () => { await device.reloadReactNative(); });
it('should login with valid credentials', async () => { await element(by.id('emailInput')).typeText('user@test.com'); await element(by.id('passwordInput')).typeText('password123'); await element(by.id('loginButton')).tap(); await expect(element(by.id('dashboardTitle'))).toBeVisible(); await
(truncated - see the full file via the links below)
File tree — 3 files
detox-skill/SKILL.md
detox-skill/reference/advanced-patterns.md
detox-skill/reference/playbook.md
Let your AI agent find skills like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.
wish › “Generate end-to-end test code for React Native applications using Detox framework”
Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →
Related skills
This skill empowers you to rapidly generate XCUITest code for testing iOS and iPadOS user interfaces. Leverage AI-driven test automation to build comprehensive UI test suites without manual scripting overhead.
This skill equips you with structured approaches to validate mobile applications across both iOS and Android ecosystems. It provides ready-to-use testing patterns and methodologies that integrate seamlessly with Claude Code CLI, helping you establish robust quality assurance workflows for your mobile projects.
This skill empowers you to create Espresso test scripts for Android applications, streamlining your UI testing automation. Leverage AI-assisted code generation to build robust test cases faster, reducing manual effort and improving test coverage across your Android projects.
This skill guides you through establishing a robust testing environment for Cometchat's native application stack. Learn to deploy testing infrastructure, integrate validation frameworks, and implement quality assurance processes that ensure your Cometchat implementations perform reliably across platforms.
This skill equips you with practical testing techniques tailored for React Native development. Discover how to configure your test environment, write effective test cases, and validate your mobile applications through hands-on guidance.
This skill automates the creation of Flutter tests across widget and integration layers, helping you validate UI components and user workflows programmatically. It streamlines test generation for Flutter applications, reducing manual test writing overhead and improving coverage across your app's interactive surfaces.
More skills appium-skill (MIT) · lettuce-skill (MIT) · behave-skill (MIT) · serenity-bdd-skill (MIT) · e2e-testing (MIT)