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
1 answer

Detox/Appium tap, multiTap, and longPress not working on element

Using detox with a React Native project. Here is the component:
liminal18
  • 563
  • 7
  • 21
0
votes
1 answer

How to exec action typeText() with React Native TextInput outside screen (position: absolute, right: -99)

I have TextInput outside screen with style {position: 'absolute', right: -99}, When i call action typeText(), i receive this error "Error: Error: Cannot perform action due to constraint(s) failure. Exception with Action: { "Action Name" : "Tap", …
0
votes
1 answer

Permission on Android Detox

As the title said it all. I have been finding the way to enable permission like 'Drawing over other apps' for Android using Detox. I think the behaviour would be similar with Permission in iOS but I can't seem to find out any document.
Hien Tran
  • 171
  • 1
  • 12
0
votes
1 answer

Could not resolve project :detox

I just started implement Detox for android for my project. However, I ran into the issue with Error:Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve project :detox'. I am not sure what did I do wrong when…
Hien Tran
  • 171
  • 1
  • 12
0
votes
1 answer

Detox doesn't start iOS simulator on Circle CI

When running detox UI tests on Circle CI, it gets stuck on starting up the simulator. If I don't prestart simulator at all, tests get stuck on detox info 5: Booting device DDB155A3... If I try to prestart simulator with xcrun instruments -w "iPad…
trubi
  • 295
  • 2
  • 14
0
votes
0 answers

Expect element to not exist timeout when the element doesn't exist

I'm trying to verify that an element doesn't exist. But when I do: await waitFor(element(by.label('Erro'))).toNotExist().withTimeout(800); await expect(element(by.label('Erro'))).toNotExist(); I'm getting " Error: Timeout of 240000ms exceeded. For…
0
votes
0 answers

Detox - Can't locate the element on the screen

I tried to resolve the issue of Detox - Enter on Numpad and thus leading to this issue. According to the screen, I have an input field with number. So there is no enter key or typeText '\n' to enter it. So I think of the solution to tap on the…
Hien Tran
  • 171
  • 1
  • 12
0
votes
1 answer

Detox 5.10.0 hanging with Jest runner

Still new to detox, trying to understand why one command at package.json work and another not. ReactNative project detox@5.10.0 one detox configuration: "jest": { "preset": "react-native", "setupTestFrameworkScriptFile":…
Dmitry Birin
  • 1,524
  • 1
  • 9
  • 7
0
votes
1 answer

Detox tests are not finishing

I've set up detox for E2E testing and Bitrise for continuous integration. I have set up a very simple initial test suite but for some reason, my tests do not finish after they have completed. init.js require('babel-polyfill'); const detox =…
Dan
  • 8,041
  • 8
  • 41
  • 72
-1
votes
1 answer

Detox issues with AppleSimUtils and CircleCI

I am trying to setup the detox build for ios in circleci using the macos executor. The issue I had was with applesmiutils. When the app tries to run, it executes the command applesimutils --list byId='SIM_ID'. This command if run locally, gives the…
Kaushil Ruparelia
  • 1,179
  • 2
  • 9
  • 26
-1
votes
1 answer

Is the detox-cli a compiler or an interpreter

I am referring to the detox-cli used in the Detox test framework for react native devices. I will like to know if the detox-cli is a compiler or an interpreter? Thanks
Paulayo
  • 75
  • 1
  • 6
-1
votes
2 answers

Detox React Native end to end test is not running when app is close

Currently doing some e2e using detox in react native. I'm trying to run detox without the emulator open but i can't make it run at the moment. Does anyone know why? I works well when the simulator is open. I would really appreciate your thoughts…
Romeo
  • 149
  • 8
-1
votes
1 answer

Is it possible to install Detox for testing on Ubuntu?

I've try to find a step by step setup information to do testing with detox on ubuntu, but I've only found it for mac, and some websites says that it's necessary a mac environment.
-1
votes
1 answer

Detox can't find custom component that has been given testId

I am trying to implement e2e testing on my React Native app. Detox builds succeed on both Android and iOS and I have managed to get mocks working as expected, but detox can't seem to locate any of the components on the page I want to test. All of…
JIrv
  • 71
  • 2
  • 10
-1
votes
1 answer

Detox - Record a single video from beginning to the end

Our team is using RN Detox which helps a lot our testing team. I'm not sure this is currently possible, but in our workflow we would like to have a second check by someone watching the video recorded during the tests (to check the design / the…
1 2 3
41
42