FEAT: init detox and eas config for e2e tests #43
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces setup and initial e2e test (currently it tests signing in) on detox.
Fixes # (issue)Type of change
Please delete options that are not relevant.
How Has This Been Tested?
iOS
On iOS simulator creates via script so to test it, you should only type:
yarn test:e2e:ios
Android
On Android creating an emulator via script will be provided in the future, so you have to create in Android Studio emulator that matches name with the name in config (
pixel_4
) and:yarn test:e2e:android:emu
To test on the attached device
yarn test:e2e:android:att
Unfortunately Android provides flaky tests so check only if the emulator opens via script, installs the app, and runs the test (no matter if successful or not).
Also - android has issues with getting the views by id (which causes flaky tests) - detox team in their documentation proposes to use
waitFor
withwithTimeout
to treat it as a workaround. But - as it is in the documentation I think that it might be the final approach.If tests are failing for you, you can deal with timeout in
withTimeout
function - increasing that might result in a successful test.Screenshot(s)
Android
https://vimeo.com/861140200?share=copy
iOS
https://vimeo.com/861142368?share=copy
Test Configuration:
OS: macOS 13.4.1
Node: version: 16.16.0
Yarn: version: 1.22.19
npm: version: 8.11.0
Watchman: version: 2023.08.14.00
CocoaPods: version: 1.12.1
CPU: (8) arm64 Apple M1
Memory: 349.56 MB / 16.00 GB
iOS SDK:
Platforms:
- DriverKit 22.4
- iOS 16.4
- macOS 13.3
- tvOS 16.4
- watchOS 9.4
Android SDK: Not Found
IDEs:
Android Studio: 2021.1 AI-211.7628.21.2111.8309675
Xcode:
version: 14.3.1/14E300c
path: /usr/bin/xcodebuild
Checklist: