Skip to content

Commit 2a6aead

Browse files
committed
Updated steps to get e2e working
1 parent a26e90e commit 2a6aead

File tree

1 file changed

+8
-3
lines changed
  • site/content/contribute/more-info/mobile

1 file changed

+8
-3
lines changed

site/content/contribute/more-info/mobile/e2e.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,20 @@ This is the typical flow for CI test run:
105105
brew install applesimutils
106106
```
107107
2. Set XCode's build location so that the built app, especially debug, is expected at the project's location instead of the Library's folder which is unique/hashed.
108-
3. Open XCode, then go to **XCode > Preferences > Locations**.
108+
3. Open XCode, then go to **XCode > Settings > Locations**.
109109
4. Under **Derived Data**, click **Advanced...**.
110110
5. Select **Custom > Relative to Workspace**, then set **Products** as **Build/Products**.
111111
6. Click **Done** to save the changes.
112112
113113
##### Complete a test run in debug mode
114114
115-
1. In one terminal window, run `npm run ios` from the root folder.
116-
2. In another terminal window, run `npm i` then `npm run e2e:ios-test` from the `/detox` folder.
115+
1. In one terminal window, from the root folder run `npm run start` and on another `npm run ios` from the root folder.
116+
2. Once the build is complete and installed, there will be a message informing of the path where the app is installed. Copy that path
117+
3. Edit `/detox/.detoxrc` and
118+
- In **apps > ios.debug**, substitute `binaryPath` by that value.
119+
- In **devices > ios.simulator > device**, substitute `type` and `os` with the values corresponding to the ones being used by the simulator. If unsure wich ones, either open the simulator or go to Xcode to see where it is being built.
120+
4. Export the values for `ADMIN_USERNAME` and `ADMIN_PASSWORD` with the appropiate values for your test server. Check the Environment Variables section below to learn more about default values and other variables available.
121+
5. In another terminal window, run `npm i` then `npm run e2e:ios-test` from the `/detox` folder.
117122
* For running a single test, follow this example command: `npm run e2e:ios-test -- connect_to_server.e2e.ts`.
118123
119124
##### Complete a test run in release mode

0 commit comments

Comments
 (0)