{"enrichment":{"faq":[{"a":"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.","q":"How do I write Detox tests for React Native applications?"},{"a":"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\u2014such as `expect(element(by.id('myButton'))).toBeVisible()` and `toHaveText()`\u2014to validate that your app behaves correctly after each interaction.","q":"What element matchers and actions does Detox provide for test automation?"},{"a":"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.","q":"How do I configure and run Detox tests locally on iOS simulators and Android emulators?"},{"a":"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.","q":"Can Detox tests be executed on cloud devices via TestMu AI or LambdaTest?"},{"a":"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.","q":"What are common Detox anti-patterns and best practices I should follow?"},{"a":"Detox-skill explains that Detox uses gray-box testing\u2014combining black-box and white-box approaches\u2014to 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.","q":"How does Detox handle test synchronization and waiting in React Native e2e testing?"}],"shadow_tags":["gray-box-testing","mobile-ui-automation","native-app-testing","cloud-device-testing","element-synchronization","cross-platform-mobile","ci-cd-mobile-testing","gesture-automation"],"summary_rewrite":"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."},"files":[{"bytes":7974,"path":"detox-skill/SKILL.md","sha256":"cafc54dae1863e54d50ccd8b391df360557f991e80c27dbd7097befb81132875","url":"https://skillfed.io/files/LambdaTest/agent-skills/detox-skill/4728f804/SKILL.md"}],"id":"LambdaTest/agent-skills/detox-skill","links":{"html":"https://skillfed.io/LambdaTest/agent-skills/detox-skill","md":"https://skillfed.io/LambdaTest/agent-skills/detox-skill.md","repo":"https://github.com/LambdaTest/agent-skills"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":68,"language":"Python","last_updated":"2026-07-24","license":"MIT","name":"detox-skill","publisher":"LambdaTest","stars":339},"relations":{"similar":[{"id":"LambdaTest/agent-skills/xcuitest-skill"},{"id":"LambdaTest/agent-skills/espresso-skill"},{"id":"cometchat/cometchat-skills/cometchat-native-testing"},{"id":"pluginagentmarketplace/custom-plugin-react-native/react-native-testing"},{"id":"LambdaTest/agent-skills/flutter-testing-skill"},{"id":"LambdaTest/agent-skills/appium-skill"},{"id":"LambdaTest/agent-skills/lettuce-skill"},{"id":"secondsky/claude-skills/mobile-app-testing"},{"id":"LambdaTest/agent-skills/behave-skill"},{"id":"LambdaTest/agent-skills/serenity-bdd-skill"}]},"slug":{"owner":"LambdaTest","repo":"agent-skills","skill":"detox-skill"},"version":"4728f804"}
