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
|`type`| Mandatory property to discern app types: `ios.app`, `android.apk`. |
224
-
|`name`| Use only when working with multiple apps within the same configuration. See an example below. |
225
-
|`binaryPath`| Relative path to the ipa/app/apk due to be tested (make sure you build the app in a project relative path) |
226
-
|`build`|**\[optional]** Build command (normally an `xcodebuild` command you use to build your app), which can be called later using Detox CLI tool as a convenience. |
227
-
|`testBinaryPath`| (optional, Android only): relative path to the test app (apk) |
228
-
|`launchArgs`|**\[optional]** An object specifying arguments (key-values pairs) to pass through into the app, upon launching on the device. For more info, refer to the dedicated [launch-arguments guide](APIRef.LaunchArgs.md). |
|`type`| Mandatory property to discern app types: `ios.app`, `android.apk`. |
228
+
|`name`| Use only when working with multiple apps within the same configuration. See an example below. |
229
+
|`build`|**\[optional]** Build command (normally an `xcodebuild` command you use to build your app), which can be called later using Detox CLI tool as a convenience. |
230
+
|`binaryPath`| Relative path to the ipa/app/apk due to be tested (make sure you build the app in a project relative path) |
231
+
|`testBinaryPath`|**\[optional, Android only]**: relative path to the test app (apk) |
232
+
|`launchArgs`|**\[optional]** An object specifying arguments (key-values pairs) to pass through into the app, upon launching on the device. For more info, refer to the dedicated [launch-arguments guide](APIRef.LaunchArgs.md). |
233
+
|`permissions`|**\[optional, iOS only]** An object specifying default [runtime permissions](APIRef.DeviceObjectAPI.md#permissions-ios-only) to give before launching the app. |
229
234
230
235
To work with multiple apps within the same configuration you should be giving each app its name, e.g.:
Detox uses [AppleSimUtils](https://github.com/wix/AppleSimulatorUtils) to implement this functionality for iOS simulators. Read about the different types of permissions and how to set them in AppleSimUtils' documentation and by checking out Detox’s [own test suite](https://github.com/wix/Detox/tree/a9a09246c05733f6b91cfcc0dba05a4714abca92/detox/test/e2e/13.permissions.test.js).
139
139
140
+
As a reference, you can also use this [table of possible permissions](#permissions-ios-only).
141
+
140
142
##### 3. `url`—Launching with URL
141
143
142
144
Launches the app with the specified URL to test your app’s deep link handling mechanism.
**This is not a part of the official Detox API**, it may break and change whenever an update to `UiDevice` or `UiAutomator` Gradle dependencies (`androidx.test.uiautomator:uiautomator`) is introduced.
0 commit comments