You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/detox/README.md
+20-16Lines changed: 20 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -82,8 +82,8 @@ Open `.detoxrc.json` and make the following modifications under `apps` and `devi
82
82
83
83
-`build`: Specify the build command for iOS and Android.
84
84
85
-
- iOS: `ns build ios`
86
-
- Android: `ns build android --detox`
85
+
- iOS: `ns build ios --env.e2e`
86
+
- Android: `ns build android --detox --env.e2e`
87
87
88
88
-`devices`:
89
89
- iOS: `"type": "iPhone 11"`
@@ -137,18 +137,6 @@ Here is a full example of a Detox configuration:
137
137
138
138
> **Note:** A default NativeScript Android project uses 17 as the minimum SDK, but Detox requires >=21. Remove or modify the `minSdkVersion` in your `App_Resources/Android/app.gradle`.
139
139
140
-
### Add Resource ID (**Android Only**)
141
-
142
-
In order to use the `automationText` property in NativeScript it must be enabled by adding a custom resource ID.
143
-
144
-
Create a file called `ids.xml` in `App_Resources/Android/src/main/res/values/` and add the following:
@@ -186,12 +174,12 @@ This example creates a testing scenario called `Example` and has a single test i
186
174
187
175
Detox uses [matchers](https://github.com/wix/Detox/blob/master/docs/APIRef.Matchers.md) to find elements in your UI to interact with.
188
176
189
-
You can use NativeScript's `automationText` property to find your UI elements using Detox's `by.id()` matcher.
177
+
You can use [NativeScript's `testID` property](https://blog.nativescript.org/nativescript-8-2-announcement/#testid) to find your UI elements using Detox's `by.id()` matcher.
0 commit comments