Questions tagged [detox]
Gray box end-to-end testing and automation framework for mobile apps
572
questions
0
votes
1
answer
11
views
Test app could not be found at path : DetoxRuntimeError
I'm setting up Detox + Cucumber as my test runner for my react-native app. My app cannot be tested / run on virtual emulators. Hence, it is must for me to use a physical device.
My issue is most ...
0
votes
0
answers
17
views
Detox: Trying to run on a physical android device - How do I configure?
I'm setting up Detox + Cucumber as my test runner for my react-native app. My app cannot be tested / run on virtual emulators. Hence, it is must for me to use a physical device.
I am not able to any ...
0
votes
0
answers
15
views
Detox on Android not working with Git action - React native
I work in React native project and with it I have connect Detox test case flow.
I have created all test scenario and it's working fine with local terminal.
I have requirement to connect with Git ...
0
votes
1
answer
37
views
Execution failed for task ':vision-camera-code-scanner:checkDebugAndroidTestAarMetadata'
So I have been at this for a while now, I recently tried to add Detox tests to android in my react native projects.
I followed the official Detox tutorial and this one
https://varunon9.medium.com/e2e-...
0
votes
1
answer
67
views
Detox/Jest Test suite failed to run TypeError: Class extends value #<Object> is not a constructor or null
I'm trying to integrate some e2e tests into my react native (expo ejected) mobile project. I'm following the instructions found on the detox Getting Started page. I'm able to successfully build my ...
0
votes
0
answers
19
views
can't find ANDROID_SDK_ROOT even when defined
after running detox test -c android it can't find my ANDROID_SDK_ROOT
$ANDROID_SDK_ROOT is not defined, set the path to the SDK installation directory into $ANDROID_SDK_ROOT,
I am using a bash shell ...
0
votes
0
answers
14
views
iOS how to inspect items on the main OS Dispatch Queue
I am developing an app using React Native and running end to end tests with Detox (this is for context but not particularly relevant). The e2e tool automatically pauses execution when it detects ...
0
votes
0
answers
36
views
Detox tests hang with pending items on dispatch queue
I am writing e2e tests on Detox to test a Firebase app in React Native. It looks like the call to firebase.auth().signInWithPhoneNumber(number) dispatches some items on the dispatch queue but these ...
0
votes
0
answers
10
views
Can be Detox framework set up on Linux or Windows without serious issues
I am new in Detox framework. I know that originally best environment
for working with Detox was Mac.
In current state, on 2022, is it possible to setup and work with Detox project
on other OS: Windows ...
1
vote
0
answers
30
views
skip detox tests on api failure
I was trying to skip the tests based on API failure for detox tests in which I am using jest as test runner
const itif = (condition) => condition ? it : it.skip;
const itif = (condition) => ...
0
votes
0
answers
22
views
How to integrate Gmail API to Detox e2e tests so I can read email confirmations and get passwordless link?
I need to pass a passwordless flow win my E2E tests with detox for our react-native app (at this point, I am testing only iOS).
The idea is request the passwordless email link from our app, reach this ...
2
votes
0
answers
35
views
Cleaning up detox in cucumber run
I'm using detox with cucumber and the setup works great until the last moment of calling AfterAll hooks.
In the hook I do the following:
AfterAll(async () => {
console.log('CLEANING DETOX');
...
0
votes
0
answers
108
views
How to resolve app crash issues in detox test?
**
**
Description:
Detox Test Environment:
Detox version: 18.20.2
React Native version: 0.61.4
Node version: v10.16.3 (also tried 12.x - same results)
Device model: Pixel_API_26
OS: System Version: ...
0
votes
0
answers
12
views
Detox allowing mobile guide android22
I am running detox automation testing with bitrise for a react native project(version details are below). Except android 21 & 22 other versions are successful. Emulator for the Android 21 & 22 ...
0
votes
0
answers
31
views
testID not recognised by detox
I've just installed detox for the first time to add some e2e test coverage for the iOS mobile app.
I've tried adding testID to the text fields but that does not seem to work.
const ...
0
votes
0
answers
25
views
Tap action has na effect on emulator but giving timeout issue- Detox
In my test, when I click on a button to navigate to the next page, But the test timeouts saying it did not receive any response to the tap action.
Environment:
"babel-eslint": "^10.0.3&...
1
vote
2
answers
106
views
Can't run tests for Android in the debug mode after change port
I want to create E2E tests for Android. I went through this guide.
run build with configaration - detox build -c android.emu.staging.debug -> get success build apk.
After it, run react-native ...
0
votes
0
answers
59
views
Detox test hangs when modal is shown
I am trying to do a test with detox where a I tap a button, a modal shows and then I interact with the modal in certain way (not important for my question).
The issue that I'm having is that when I ...
0
votes
0
answers
59
views
java.lang.NoSuchMethodException: No such accessible method: matcherForSufficientlyVisible() on class: com.wix.detox.espresso.DetoxMatcher
I'm trying to call toBeVisible() from Detox which is documented here:
https://wix.github.io/Detox/docs/api/expect#tobevisible
But every time I try to run a code such as:
await expect(element(by.id('...
0
votes
1
answer
106
views
How to print view hierarchy to console while testing in detox
I am running the tests with detox test -c android, I would like to print the view hierarchy to console while testing.
2
votes
1
answer
262
views
How to install Detox + jest (ts-jest) + Typescript in a react-native project?
I've trying to use Typescript in my detox tests. This gist was the most I could find. I get an error telling that jasmine is not defined. Searching thorugh Detox's issues I found that they're only ...
0
votes
1
answer
51
views
Detox issue on React Native Expo project
When I try to run my E2E test using Detox on my expo project, I got an unknown issue.
I have a Input component (@ui-ketten/component) and it's testId is SignUpEmailInput. I can navigate to the Signup ...
0
votes
0
answers
42
views
detox build command running into infinite loop with meaningless logs
I tried to run npx detox build but it gives this logs in the image and i want to know how to determine the problem to fix it
see terminal logs
0
votes
0
answers
93
views
Detox react-native run multiple e2e files
I started to do several test with detox (in my react native project) in one file and I was wondering if it was possible to do it in several files?
because when I tried in 2 different files, detox ...
0
votes
1
answer
82
views
Detox - Possible to Force Fail Test?
Is there a way to force a test to fail in Detox? I haven't found anything in the documentation that says this can be the case. I am comparing two IDs that are hidden in an element and screen of my app ...
0
votes
0
answers
103
views
CPU acceleration status: /dev/kvm is not found: VT disabled in BIOS or KVM kernel module not loaded
Hi I want to run detox tests with Android Emulator. I am using Bitbucket Pipeline to automate the testing. I am using EC2 Ubuntu, C5 bare metal as runner for Bitbucket pipeline. KVM is on(tested using ...
0
votes
0
answers
141
views
The app has not responded to the network requests below
Hi I am getting below error when I run from bitrise to do the detox testing with Android Emulator. Pasted partials codes below along with error. I tried to add --debug-synchronization with detox test ...
2
votes
0
answers
101
views
Is it possible to verify the color of an element using Detox?
Let's say I found an element by id and want to check its color, how would one do it?
I tried:
const attr = await element(by.id("the id")).getAttributes();
console.log(attr);
this prints ...
0
votes
0
answers
22
views
Detox withAncestor matcher returns Null on android
Currently I have a test that relies on assertions following this generic archetype:
await expect(element(by.id('child_element')
.withAncestor(by.id('parent_element'))))
.toBeVisible()
I ...
1
vote
1
answer
339
views
use a compatible library with a minSdk of at most 16
Hi I am trying to build detox to test my app. I am facing compatibility issue. My app runs with android versions 21 to 31. I get the below error when I run the command "yarn detox build -c ...
0
votes
1
answer
295
views
React Native - When I run 'detox build -c android' it says "The system cannot find the path specified"
So I've essentially followed all the instructions in the Detox documentation for getting a Detox testing environment and suite set up for Android in a React Native project. For my Android setup, I ...
0
votes
0
answers
65
views
How Can I skip an animation while testing React native app with Detox?
I'm testing a react native app and I have a busy screen I need to test. Detox only completes the previous action when the screen stops being busy. It's intelligent enough to understand that said ...
0
votes
0
answers
83
views
How to run Android Detox Tests on AWS Device Farm
I know that AWS Device Farm doesn't support Detox by default, but there are some articles that said that it is able to execute Android tests only on AWS Device Farm. I can execute Detox tests on ...
0
votes
1
answer
96
views
Running Detox - what are the perquisites from the CI framework?
I have a React-Native app.
I want to run Detox tests when a PR is being created.
I need the CI Framework to be able to run IOS Simulator and Android Emulator.
Currently using BitBucket but Im asking ...
0
votes
0
answers
44
views
Not able to generate test summary with jest but able to get the code coverage when running detox tests
I was trying to run the detox to get code-coverage and summary of the tests, but only getting the coverage report not the summary of the tests.
1
vote
0
answers
657
views
Detox - Test is stuck at device.launchApp in Android
I am trying to integrate with my existing Android application which has both Native and ReactNative components. I have followed the setup instructions in their README.
The problem seems to be that ...
0
votes
0
answers
207
views
Not able to run detox test using release
I am facing issues while executing the scripts for the mobile app using the Detox automation tool.
We have used the below steps :
Step 1:
./gradlew assembleReleaseE2E: The build executed successfully....
0
votes
0
answers
205
views
Android : Not able to run the Detox test in release mode
I am facing issues while executing the scripts for the mobile app using the Detox automation tool .
We have used the below steps :
Step 1: ./gradlew assembleReleaseE2E: Build executed successfully.
...
0
votes
0
answers
44
views
Why Detox reloads app when working on multiple file
I am running multiple e2e test files with Detox. When first file test finished, AppleSimUtils is called and app is relaunching for next test file. However, I want the test to continue without ...
0
votes
0
answers
26
views
Running tests based on keyword matching in detox or in jest
I wan to run tests based on the keyword matching,suppose if I have 3 it blocks inside describe.. I want to run the test based on unique keyword in test description.
describe({
it('test1'){
}
it('...
0
votes
1
answer
375
views
java.lang.NoSuchMethodError: No virtual method retryOnConnectionFailure Error when running Detox Tests with Proguard enabled in React Native 0.66
When running Detox tests in our Android mobile solution we are getting the following error. This started to happen when we were upgrading from RN 0.64.2 to 0.66.2. We are running Detox 19.3.1.
12-20 ...
1
vote
0
answers
55
views
Unable to execute the test using Detox + Typescript + Expo in IOS
My test is not being executed using Detox, expo and typescript.
Here is the snapshot of the error I am getting when running the test using command 'detox test --configuration ios.sim'
failure error ...
0
votes
0
answers
51
views
DETOX: Tap() happens before the element is actually tappable
I want to close a dropdown and then tap on the button that was behind the dropdown.
The problem is that the tap action is being performed while the dropdown is being dismissed and so it doesn't ...
0
votes
0
answers
84
views
Using detox can you test apps outside of our application made in React Native?
I'm using React Native to develop my app. I use detox as my E2E testing framework.
I want to test things outside of my app, for example:
Browser search and deep-linking to my app.
Email sending in ...
0
votes
0
answers
37
views
Is it possible to Detox test run some android native screens & react native screens?
I have create a one app using react native(70%) and android(30%). My app first 2 screen is native webview screen for sign up. How to write a detox test for this 2 screen.
How to handle this 2 screen ...
0
votes
0
answers
99
views
Detox and React Native Elements CheckBox: expect element to be checked
I am implementing detox, which I am loving, for a react-native project. One of the tests requires me click on various checkboxes from react native elements. I am able to check the boxes, however I am ...
0
votes
2
answers
391
views
How to use RCT_METRO_PORT correctly to change metro bundle port?
I would like to run tests on two different builds of iOS, therefore I need the metro bundler to run on two different ports.
But it's about the same repo, so I can't change all the occurrences of 8081.
...
2
votes
0
answers
171
views
How do I fix Something went wrong in @nrwl/run-commands - Command failed: detox build -c ios.sim.retail.debug
I am experiencing an issue with opening an app for the first time
detox[12987] ERROR: [cli.js] Command failed: export EXCLUDED_ARCHS=arm64 && ENVFILE=.env.dev.detox xcodebuild -workspace ./...
1
vote
1
answer
75
views
Getting 'could not resolve "jest-config" package from the "jest" npm package directory.'
I am getting "jest-config" package from the "jest" npm package directory error when I try to run e2e test for android application, I am using detox test -c android, I installed ...
0
votes
1
answer
56
views
Detox android test references incorrect Android SDK path. "There was no "aapt" executable file in directory"
I have a React Native app up and running, and have Detox installed and working for iOS, but having issues running the test for Android. When I run the test, I get the following error:
There was no &...