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

Github workflow fails to build detox ios

I am having issues with building a react native app(with expo- bare-work flow) in github actions using detox to run e2e tests. The issue seems to be when using the metro bundler the port is in use. It is failing on the following step "detox build -c…
Elliott Weeks
  • 83
  • 1
  • 5
0
votes
1 answer

Mobile emulator/simulator Detox screenshot artifacts differ when run on different hosts

I'm taking screenshots with Detox locally and committing them to my source repo. In continuous integration (Circle/macOS executor), I'm running the test again and detecting any file differences. Basically a form of visual regression testing.…
stephen_liu
  • 1,136
  • 2
  • 11
  • 17
0
votes
0 answers

Android: Could not find any matches for com.wix:detox:+ as no versions of com.wix:detox are available

I had everything working with Detox (RN). Then I decided to add --production to npm install, this is supposed to skip devDependencies (this is where detox dep resides). After that, ./gradlew assembleRelease fails with > Task :app:lintVitalRelease…
Igor Korsakov
  • 1,589
  • 1
  • 9
  • 6
0
votes
1 answer

Cancel ApplePay and GooglePay dialog

I'm trying to test an App using Detox and I want to programmatically click on the cancel button or any other button on the (Apple|Google)Pay dialog and I can't find a way to do that !
0
votes
1 answer

Android simulator can't start the app during running test with Detox

I want to test our app with detox. On IOS it works fine, but it doesn't work yet on Android. So when I run the detox test the simulator will open, but the app won't be started. In the logs is stated that the build was successful. Besides that when…
camjan27
  • 31
  • 4
0
votes
1 answer

Disable synchronization before launchApp

Is it possible to disable synchronization before/during launchApp (with newInstance: true)? Ideally I'd like the: await device.launchApp({ newInstance: true, url }); to resolve immediately. I've inherited an app that does weird things at launch, so…
ecesena
  • 1,155
  • 1
  • 12
  • 19
0
votes
1 answer

Will Detox tool scan QR codes

Can someone help me and tell me whether Detox test tool supports QR code scanning for mobile apps (Android & iOS)? I have seen in the Github page that there was some sort of bug raised and the question has been moved to stackoverflow and I couldn't…
0
votes
1 answer

Is there any test for drag and drop?

I'm working on detox automation. Started implementing the testcases for my mobile application. I need to do my dashboard customization. My dashboard contains tiles, where a user can select a particular tile and get into more details. I want to move…
0
votes
1 answer

general approach to fix the "The number of method references in a .dex file cannot exceed 64K." issue

I have a ReactNative application and have no experience in android development. Currently, I have a problem with integrating detox with my app (app compiles and works fine if just run it through react-native run-android). I found quite a lot of…
0
votes
1 answer

expect(...).toHaveAttribute is not a function despite properly extending it

I have my test setup using jest and detox (@e2e) Issue is, despite seemingly properly importing @testing-lib/jest-dom, I can't seem to use the toHaveAttribute() matcher as I should be able to. Inside my spec.js file: import { toHaveAttribute } from…
Samuel Hulla
  • 6,617
  • 7
  • 36
  • 70
0
votes
1 answer

Can I use whileElement(...).atIndex(..) to distinguish multiple scroll page id's

I was getting the following error: Multiple elements were matched However it turned out that the scrolling page ID was multiple times matched. This means that I need something like this: await…
camjan27
  • 31
  • 4
0
votes
0 answers

Adding victory-native makes the tests hang

For more details please see the following example: https://github.com/Osedea/react-native-victory-native-detox-bug Versions: Detox: 15.2.2 Victory-native: 34.0.0 Please see the logs below: enter image description here Please let me know if more…
Mikayel
  • 1
  • 1
0
votes
0 answers

Detox hangs on Modal shown

I'm trying to run Detox test for my React Native application but the test won't execute whenever a Modal is shown. I have a test script with a OTP modal. The modal is made using react-native-raw-bottom-sheet Below is the content of the OTP import…
Kelok Chan
  • 706
  • 1
  • 8
  • 24
0
votes
0 answers

Detox "Cannot read property 'bindings' of null" error

I tried adding Detox e2e testing to my react native app and I am running into the following error when trying to run a simple test. I have only installed Detox to the iOS side of the app. The "detox build" command executed perfectly. Below are the…
Liam Ramsbottom
  • 157
  • 3
  • 15
0
votes
1 answer

Detox not working [Info.plist does not contain CFBundleShortVersionString]

package.json "detox": { "test-runner": "jest", "configurations": { "ios.sim": { "build": "xcodebuild -workspace ios/lamunchies.xcworkspace -scheme lamunchies -configuration Debug -sdk iphonesimulator…
Jorde G
  • 51
  • 3