Questions tagged [detox]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
7 views

Detox+ native-base switch is not accessible by textID

I tryed accessing to a native-base switch component via testID but it seems that component is not visible Component Definition <HStack alignItems="center" ...
Andrea Saltari's user avatar
0 votes
0 answers
4 views

Does Detox support Physical Devices when run from CI environment?

It's not totally clear to me if i can test Physical Devices (Android) with Detox when running on a CI (Jenkins or CircleCI) Environment. I Expect to test Real Devices (only Android) as well as ...
Andrea Saltari's user avatar
0 votes
0 answers
13 views

Detox e2e/hooks can't start simulator

all. For some reasons iOS and Android simulators in Detox/expo stack began to fall and can not start all over again. Any thoughts? Thank you VError: a BeforeAll hook errored, process exiting: e2e/...
Ioann Rio's user avatar
1 vote
0 answers
20 views

React Native Detox Running Slowly on iOS

I have a production iPad application that I used to use Jest + @testing-library/react-native to perform e2e testing. I've recently decided to switch to Detox for a number of reasons. After setting it ...
Zyad Elgohary's user avatar
0 votes
0 answers
11 views

How can I open an Expo App using URL in Detox?

I want to open an app with URL in Detox tests. I followed this openApp.js from Expo guide to open the app in Detox. However, the guide doesn't tell me how to open an app using URL; for example, myapp:/...
Keunwoo Park's user avatar
0 votes
0 answers
12 views

React Native Testing with a single code base

If we have a single codebase for react-native-web and mobile apps (Android and iOS) how should we handle the e2e tests. Is it possible to handle the tests also using a single code base ? I saw that ...
ThimiraR's user avatar
  • 167
1 vote
1 answer
20 views

How to scroll from the top to the bottom of the screen in Detox (React Native Testing tool)

I would like to know how to scroll in a screen from the top to the bottom in Detox for React Native app because I have a button on the bottom of the screen and is not visible. Thanks!
gabe's user avatar
  • 89
0 votes
0 answers
15 views

Detox UI test for native Android views not working

I have a hyrbid app with RN I am trying to implement Detox for UI tests, while everything works fine for pages on RN on Android, i am facing an issue with Android app - my login page (1st page of the ...
Prattham Arora's user avatar
0 votes
0 answers
17 views

detox error minSdkVersion 19 cannot be smaller than version 21

I have follow all the steps for install detox on my app and i read that detox accept minsdkVersion >= 18 , and my project runs minsdkVersion = 19 . I tried everything eve this guide for solving ...
greta calamari's user avatar
0 votes
0 answers
18 views

Is it possible to create `TestEnvironment` of `@firebase/rules-unit-testing` in Jest context and use it in React Native?

I'm building end-to-end testing with Detox for my React Native App. I use Firebase as infrastructure, so I tried to run end-to-end testing using Firebase Emulator. To run end-to-end testing, I need to ...
Keunwoo Park's user avatar
0 votes
0 answers
29 views

Detox test requires bundle script address on development build of Expo app

I use the Detox library to test my React Native application. My React Native application is based on Expo, and it is in development build instead of release because I still need to modify the source ...
user2877989's user avatar
1 vote
0 answers
25 views

How to interact with redux through a Detox test?

I am using Detox to test a react-native app I have. Part of the app flow involves logging in in order to access certain parts of the app. I would like to test specific aspects of the app past the ...
micahdas's user avatar
0 votes
0 answers
19 views

Detox closing soft keyboard on Android

In Detox, is there any proper way to hide Android softkeyboard without workaround like tapping on button twice?
Gabsys's user avatar
  • 176
0 votes
0 answers
18 views

How can I test user authentication separately?

I just want to write e2e test for react native app which is already developed with react-native. I can separate test cases but I can't run test cases with app-flow order. For example, I want to test ...
feyyum's user avatar
  • 102
0 votes
0 answers
244 views

Detox Jest Could not resolve a module for a custom reporter

I just upgraded my Detox from ^18.6.2 to ^20.11.3 and Jest from ^26.6.3 to ^29. Followed the migration docs. detox build works well however when I try to run detox test I get the error below Error: ...
Olli's user avatar
  • 512
0 votes
0 answers
118 views

react-native-encrypted-storage:processDebugAndroidTestManifest FAILED

I am having an issue while trying to run detox build command but to be more specific it is failing on this step: ./gradlew assembleAndroidTest, the error I am getting is here: Task :react-native-...
katerynaUK's user avatar
0 votes
0 answers
58 views

Detox build doesn't work (original one is)

So I'm using a react native application. When I'm building my app with the "classic" way, it's building well. When I'm trying to build with Detox, it's a complete mess, either it's in debug ...
Mayoul's user avatar
  • 626
0 votes
0 answers
19 views

How to connect Detox framework with XRay test management tool

I have detox project and I would like to connect testing results from Detox to XRay test cases. In the past I was doing Cypress integration with TestRail and it was great where test results from ...
Dusan Petrovic's user avatar
0 votes
0 answers
53 views

How to set environment specific data for testing (detox framework + react-native app)

I am new to the react-native world and sorry if a stupid question. I am writing e2e tests for a react-native app using the detox framework. I have some data based on environment (test / staging / prod)...
S. Kartik's user avatar
0 votes
0 answers
34 views

What does this react native detox build error mean?

I'm very new to React Native and to detox. I followed their setup guide and when I went to execute the command detox build --configuration android.emu.release I was met with this lovely message: ...
KAT's user avatar
  • 145
0 votes
0 answers
32 views

React Native end-to-end testing with Detox not printing number of tests passed or failed?

So recently we decided to go with Detox to do end to end testing of our react native app. Everything works fine but at the end we don't see the number of tests failed or passed. The integration was ...
Saumya Ranjan Nayak's user avatar
0 votes
0 answers
40 views

Detox: How to close iOS native video player?

I'm using Detox for e2e test. And my app has media-files, that open with iOS native player. I must check that video-preview item(that I heat to open the video). not.toBeVisible(). And the final ...
Greem's user avatar
  • 1
0 votes
0 answers
112 views

How to detox a selected image from an expo-image-picker with React native expo

I'm new to detox testing, and I'm using detox tests in my project created with React Native Expo. In my registration form, I have a visual selection field where I'm using the expo-image-picker library....
fahriye zeynep çakır's user avatar
2 votes
0 answers
238 views

Detox: Cannot use import statement outside a module

I'm trying to run detox typescript tests in my react-native app. When an import is encountered in the test, the following error is thrown: SyntaxError: Cannot use import statement outside a module ...
Yuniac's user avatar
  • 397
0 votes
0 answers
318 views

Problems setting up Detox for E2E tests in a Expo React Native managed app

I'm trying to integrate E2E tests with my Expo React Native managed app but I have not been able to do so successfully yet. I'd like to be able to run E2E tests locally and that's why I'm building the ...
José Marín's user avatar
1 vote
2 answers
618 views

Getting Detox can't seem to connect to the test app(s)! on Android

Getting Detox can't seem to connect to the test app(s)! on Android I'm encountering an issue with Detox, a testing framework for mobile apps, where it's unable to establish a connection with the test ...
Nidhul's user avatar
  • 11
0 votes
0 answers
81 views

Detox giving a false positive on `expect(...)toBeVisible()`

I'm having some trouble understanding why detox is telling me elements are visible when they are not to the naked eye. Our application has testIDs attached to basically any element that we would write ...
Vincent Onorato's user avatar
1 vote
0 answers
94 views

Testing date/time based behavior in React Native Detox

Are there guidelines on testing date/time based behavior with Detox in a React Native app? I have an app whose functionality is largely based on the passing of time. For example, if a user completes a ...
Tyler's user avatar
  • 839
0 votes
0 answers
145 views

How to tap on Modal's Continue button without testIds in Detox E2E Testing for React Native app with Auth0 Universal Login?

In my React Native application, I am using Detox for end-to-end testing. My app's authorization flow includes Auth0 Universal Login, and I am struggling to find a way to tap on the "Continue"...
Saad Mehmood's user avatar
0 votes
1 answer
224 views

Detox take screenshot of the app when test fails

I want Detox only to take a screenshot if the test fails and saving the photo with the test name, currently I didn't find anything in the Detox documentation that returns test's state or name in the ...
Erfan Taghvaei's user avatar
0 votes
0 answers
96 views

Detox tests running locally but not in CI/CD pipeline

When running our detox tests locally everything is working as expected. When running the detox test via the Azure pipeline we get a timeout error (see below). The pipeline has worked in the past, but ...
Oshawatt's user avatar
3 votes
1 answer
468 views

Test is failing in Detox when the layout is overlayed

I get the following error in Detox when the test clicks on a button, the click works but after the component re-renders because of a state change, the test strangely wants to click on the button again ...
Erfan Taghvaei's user avatar
0 votes
0 answers
16 views

I am trying to run my tests on IOS simulator. But when ever app launched by Detox, getting 'No Connection' error

I am trying to run my tests on IOS simulator. But when ever app launched by Detox, getting 'No Connection' error. Tests are running fine on Android. When close the Detox session app loads normally $ ...
Sudheer's user avatar
  • 21
0 votes
0 answers
83 views

typeText() not working correctly and leaving phantom text in a webView

Would anyone know if there are any known issues with typeText() when working with android webviews. const myWebView = web(by.id("webView")); const emailWeb = myWebView.element(by.web....
Themunit's user avatar
1 vote
0 answers
102 views

23 files found with path 'META-INF/MANIFEST.MF' from inputs:

I've been running detox build -c android.emu.debug and I keep getting an this error: 23 files found with path 'META-INF/MANIFEST.MF' from inputs: Which seems to be coming from shopify_react-native-...
Aurelien Essome's user avatar
0 votes
0 answers
66 views

React native app crashes when e2e testing with a url using detox and Android Studio. The test runs fine on ios

When I try to run an e2e test with detox with the following test case, the app opens but does nothing, only the screen flashes once, and the test fails. This happens with all other similar tests that ...
Lursmani's user avatar
  • 159
0 votes
0 answers
75 views

how to launch detox tests on aws device farm?

I am working on deploying Detox E2E tests for mobile application. I didn't find a support to launch Detox tests on AWS device farm. can i find a support to launch Detox E2E tests on aws device farm ?
ayman's user avatar
  • 1
0 votes
0 answers
62 views

Detox React Native test passing for debug but not for release

When testing my react native application with the detox test --configuration ios.sim.release command my test runs and watching the simulator I see the the button with my testId doesn't get pressed. ...
GitWolf's user avatar
  • 11
-1 votes
1 answer
150 views

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='...
Kaushil Ruparelia's user avatar
0 votes
0 answers
251 views

After passing testID to Stack.Screen, testID is not recognized by detox

After installing and configuring detox in react native app to run e2e test. It failed to recognize testID that was passed to the options object of Stack.Screen Home component import { React } from '...
Carine SEMWAGA's user avatar
0 votes
0 answers
478 views

SyntaxError: Unexpected token '<' in React Native when running tests

I have implemented detox for my react native app. I created dashboard.test.tsx to run my first tests. Below you can see a sample test I wrote in that file. import { device } from 'detox'; import { ...
Haritha Senevirathne's user avatar
0 votes
0 answers
362 views

Why detox gets stuck with the message " The app is busy with the following tasks: • 1 network requests with URLs "

I am using detox to run e2e tests. After running initial tests and login to the app, app gets stuck with the above mentioned message. Socket io gets start right away after the login. When i navigate ...
umer shakeel's user avatar
0 votes
0 answers
36 views

Testing with Detox and Expo RN. Start my e2e test in second screen

I'm new with e2e detox test. I'm trying to figure out how to test different screens one by one. But there's a way to test for example one screen (for example contact) without say "login inside ...
Elena Martín Castillo's user avatar
2 votes
0 answers
162 views

Detox build failed - ':react-native-inappbrowser-reborn:mergeDebugAndroidTestJavaResource'

I have a problem with building tests in detox. It shows me this error: What went wrong: Execution failed for task ':react-native-inappbrowser-reborn:mergeDebugAndroidTestJavaResource'. A failure ...
KornelDev96's user avatar
2 votes
0 answers
219 views

Unable to reset app state between tests in same Detox test suite

I have several Detox test files/suites that are separated into test suites for various high level app features. We have Detox set up with the following behavior: detox: { behavior: { ...
Johnny's user avatar
  • 738
1 vote
0 answers
304 views

'kotlin-android-extensions' is no longer supported even though not using

Since the weekend assembling a release with ./gradlew assembleRelease --stacktrace won't work any longer We get the following error even though we are not using either 'kotlin-android-extensions' or '...
privspy's user avatar
  • 63
2 votes
1 answer
806 views

Detox .tap() function only highlights, does not press. Why?

I am testing a react-native app on Android, which uses buttons from native Pressable class*. This all works in layout inspector, and Detox is able to find the button as visible. However when I try to ...
Milan Smolík's user avatar
0 votes
0 answers
59 views

How do I get Detox to find TouchableWithoutFeedback by testID?

I have a test, which needs to click on a TouchableWithoutFeedback element. I have passed it a testID prop, but Detox (v20.1.2) doesn't see it. I can see in devtools, that I the testID is there. I can ...
Milan Smolík's user avatar
1 vote
0 answers
94 views

Why am I getting "Jest encountered an unexpected token" when using detox with expo-updates?

I want to use expo-updates package with detox and jest, however I keep getting the following error: FAIL test/e2e/starter.test.ts.. ● Test suite failed to run Jest encountered an unexpected ...
Milan Smolík's user avatar
0 votes
0 answers
58 views

Does anyone know how to identify an element from the android native share modal using detox framework?

I want to identify any of the elements marked in red in the picture below, so I can do an assertion that after tapping the Share button in my app, to check that the native share modal has opened. I ...
vladjoldos's user avatar

1
2 3 4 5
13