From 3dd9f8c540d50d313907292ecd94bb5e4bb5433e Mon Sep 17 00:00:00 2001 From: mobileoss Date: Sat, 19 Oct 2024 19:16:11 +0000 Subject: [PATCH] Publish docs version 20.x --- website/versioned_docs/version-20.x/api/system.md | 4 ++-- .../contributing/code/building-and-testing.md | 14 +++++++++++--- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/website/versioned_docs/version-20.x/api/system.md b/website/versioned_docs/version-20.x/api/system.md index c1a6c9829b..4e9e7610b5 100644 --- a/website/versioned_docs/version-20.x/api/system.md +++ b/website/versioned_docs/version-20.x/api/system.md @@ -70,7 +70,7 @@ System expectations are used to assert the state of elements within the system: Asserts that the element exists. ```js -await system.element(by.system.label('Allow')).toExist(); +await expect(system.element(by.system.label('Allow'))).toExist(); ``` ### `not` @@ -78,7 +78,7 @@ await system.element(by.system.label('Allow')).toExist(); Negates the expectation. ```js -await system.element(by.system.label('Allow')).not.toExist(); +await expect(system.element(by.system.label('Allow'))).not.toExist(); ``` [`by.system.label(label)`]: #bysystemlabellabel diff --git a/website/versioned_docs/version-20.x/contributing/code/building-and-testing.md b/website/versioned_docs/version-20.x/contributing/code/building-and-testing.md index d354bb12d5..e55589799e 100644 --- a/website/versioned_docs/version-20.x/contributing/code/building-and-testing.md +++ b/website/versioned_docs/version-20.x/contributing/code/building-and-testing.md @@ -78,6 +78,13 @@ cd detox/test detox test --configuration ios.sim.release ``` +:::note + +Mind that on iOS, Detox expects a specific simulator device with a specific name and os version to be available in your Xcode environment. +The required details are specified in the [detox.config.js](https://github.com/wix/Detox/blob/master/detox/test/e2e/detox.config.js) under `ios.simulator` device configuration (see `type` and `os`). Be sure to [install such a device](https://developer.apple.com/documentation/safari-developer-tools/adding-additional-simulators), beforehand. + +::: + To run in Android release mode, run: ```bash @@ -87,7 +94,8 @@ detox test --configuration android.emu.release :::note -Mind that on Android, Detox expects a specific AVD with a [specific name](https://github.com/wix/Detox/blob/24f68c3bd7675ed6f508e3f5fea97509eb7991b2/detox/test/e2e/detox.config.js#L111) to be available on your computer. +Mind that on Android, Detox expects a specific AVD with a specific name to be available on your computer. +The required details are specified in the [detox.config.js](https://github.com/wix/Detox/blob/master/detox/test/e2e/detox.config.js) under `android.emulator` device configuration (see `avdName`). Be sure to [install such an AVD](https://developer.android.com/studio/run/managing-avds#createavd), beforehand. ::: @@ -127,8 +135,8 @@ On our CI, we test our changes on both iOS and Android, and we lint-check our co You can run the same scripts we run on our CI locally, to ensure your changes are passing the tests (under the project's root directory): ```bash -npm run ci.ios -npm run ci.android +npm run ci:ios +npm run ci:android ``` Refer to the scripts `scripts/ci.ios.sh` and `scripts/ci.android.sh` to see how we run the tests on our CI.