Run e2e tests
Overview
The app uses Detox for e2e testing.
See configuration here https://github.com/asset-reality/ar-agent-frontend/blob/main/.detoxrc.js
Detox expects specific simulators to run the tests (Pixel_8_Pro_API_34 and iPhone 15), they can be changed on detoxrc.js, There will be a script to setup simulators automatically.
Currently e2e tests work only from local machine (not yet on CI).
Run e2e tests
Ensure your local machine is setup to run on iOS and Android, see Getting started for more info.
iOS
Build the app using
yarn workspace native e2e:ios:build
and run
yarn workspace native e2e:ios:test
or simply run this command to build and run tests
yarn workspace native e2e:ios
Android
Build the app using
yarn workspace native e2e:android:build
And run
yarn workspace native e2e:android:test
or simply run this command to build and run tests
yarn workspace native e2e:android