Questions tagged [detox]

Gray box end-to-end testing and automation framework for mobile apps

From GitHub page:

High velocity native mobile development requires us to adopt continuous integration workflows, which means our reliance on manual QA has to drop significantly. Detox tests your mobile app while it's running in a real device/simulator, interacting with it just like a real user.

The most difficult part of automated testing on mobile is the tip of the testing pyramid - E2E. The core problem with E2E tests is flakiness - tests are usually not deterministic. We believe the only way to tackle flakiness head on is by moving from black box testing to gray box testing. That's where Detox comes into play.

Cross Platform: Write cross-platform tests in JavaScript. Currently supports iOS and Android.

Runs on Devices (not yet supported on iOS): Gain confidence to ship by testing your app on a device/simulator just like a real user.

Automatically Synchronized: Stops flakiness at the core by monitoring asynchronous operations in your app.

Made For CI: Execute your E2E tests on CI platforms like Travis without grief.

Test Runner Independent: Use Mocha, AVA, or any other JavaScript test runner you like.

Debuggable: Modern async-await API allows breakpoints in asynchronous tests to work as expected.

See the GitHub page for more information.

619 questions
0
votes
0 answers

Mock 'element' in jest tests

I have a helper which I use for Detox tests which hold abstractions of most commonly occurring actions. Like this. /** * Looks for a search input and inputs the query */ export const inputSearchQuery = async ({ query = '', placeholderText = '' })…
JanithaR
  • 1,094
  • 2
  • 11
  • 23
0
votes
1 answer

I can not answer the native iOS confirm Detox - mocha application in React native

I just started using Detox to test my react native app and I'm having some trouble to answer for native confirm. I didnt find list of _UI......View (like: _UIAlertControllerActionView, _UINavigationBarBackIndicatorView) it('should show world screen…
Vasyl Petrov
  • 360
  • 2
  • 9
0
votes
1 answer

tap behaviour not consistent on iOS with disableSynchroniztion

I have a test which uses a WebView to login to the application (done in a hacky way by using a text input with a button + injectedJavaScript as WebView instrumentation is not supported). The problem appears because the login operation inside the…
Deniss B.
  • 281
  • 4
  • 13
0
votes
1 answer

Detox - test | Android | ChildProcessError: Command failed

detox test -c ios.debug is running tests fine. detox build -c android.debug builds fine too each time. But detox test -c android.debug is giving this issue. It seems to be related to the Android SDK path. Any ideas?
Leo
  • 10,407
  • 3
  • 45
  • 62
0
votes
1 answer

Checking for disabled button state with Detox

I'm running Detox tests against a React Native ios app. Users need to confirm their passwords to enable Submit button. Is there any way to get Detox to perform a test for a disabled button state? I'm not seeing any matchers on the Detox matchers…
0
votes
1 answer

Detox not found testID in childrens components

I can not verify the existence of some TestID`s in some components themselves. What can it be? I already went from props but it does not work.
0
votes
1 answer

Can I use detox test framework to test react + react native app?

Totally New this area: Does Detox support apps which are developed in React and Wrapped in ReactNative? I am trying to use testing framework for react+react-native app. Trying to test in simulator and/or device. I liked Detox, but not sure if it…
user8828251
  • 61
  • 1
  • 1
  • 4
0
votes
1 answer

Detox: How to pass -disableRNTestingOverride 1 parameter

I'm using detox on the newest version and this commit (https://github.com/wix/Detox/commit/2507c1e4325936ed9f46c0f64571fa581c71ff5f) disabled the IS_TESTING field for our tests. It mentions that we have to pass -disableRNTestingOverride 1 to disable…
srn
  • 170
  • 1
  • 10
0
votes
1 answer

unable to launch application using deeplink url in detox for the IOS application

Unable to launch application using deeplink for the ios app in detox Initially the landing page in non react-native, after clicking on the link will be entering into the react-native page. Tried with the await device.relaunchApp({url: url}); But…
Karthik Rao
  • 179
  • 1
  • 1
  • 9
0
votes
1 answer

Detox: How to Provide bitrise build path to Detox configurations to test E2E on bitrise

In order to improve build times we plan to use bitrise builds to test e2e with detox. I found that we can provide device name at run time with --device-name i.e detox test -c android.emu.release --device-name Nexus 5X, but I could not find any…
Ravi
  • 1
  • 3
0
votes
1 answer

Detox: "Cannot find UI element." when trying to scroll FlatList

This is the code for the tests: //navigates to the new screen: it("should show myFlatListScreen after tap", async () => { await element(by.id("navigationButton")).tap(); await waitFor(element(by.id("myFlatListScreen"))).toBeVisible(); …
Michael Campsall
  • 4,325
  • 11
  • 37
  • 52
0
votes
1 answer

Can Detox automation library automate hybrid and web app?

I am exploring Detox automation library by Wix. I tried it on React native and Native app it worked fine. I want to know do this tool have the capability to automate hybrid app and web app? As I don't have any hybrid app and web app source code I…
user2350138
  • 507
  • 2
  • 9
  • 27
0
votes
1 answer

Detox tests are breaking

This is regarding detox e2e tests. I am running my tests, each under an it('xx', async => { await...}); The tests are scripted in such a way that 1st test would log in, 2nd test would do something on homepage, 3 rd test would navigate from homepage…
Siva
  • 113
  • 1
  • 16
0
votes
0 answers

How to start using detox

Im completely new to JavaScript Programming and want to start writing tests for UI Automaiton of react native apps using detox. Can someone tell me if it is possible to write tests just the way we do it in Appium or do we have to have NPM Project…
S.Sai
  • 1
  • 1
0
votes
0 answers

How can I verify if a Text component is empty with Detox?

Is it possible to retrieve the text or the value of a react-native component (e.g text-input)? await expect(element(by.id('componentId'))).
matt
  • 607
  • 7
  • 20