Skip to content

Commit

Permalink
Publish docs version 20.x
Browse files Browse the repository at this point in the history
  • Loading branch information
mobileoss committed Oct 19, 2024
1 parent 74a2c14 commit 3dd9f8c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions website/versioned_docs/version-20.x/api/system.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ 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`

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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.

:::
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 3dd9f8c

Please sign in to comment.