Skip to content

Commit

Permalink
Remove references to Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
NSeydoux committed Aug 20, 2024
1 parent 03d8ddd commit e235929
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 deletions.
5 changes: 1 addition & 4 deletions .detoxrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ module.exports = {
device: {
avdName: process.env.TEST_ANDROID_EMU
},
// If running in CI, the emulator requires additional configuration options.
bootArgs: process.env.NODE_ENV === "docker" ? "" : "-no-snapshot -noaudio -no-boot-anim -camera-back none",
headless: process.env.NODE_ENV === "docker"
}
},
configurations: {
Expand All @@ -75,7 +72,7 @@ module.exports = {
defaultTestTimeout: 15000
},
artifacts: {
rootDir: process.env.NODE_ENV === "docker" ? "/screenshots/" : "./screenshots/",
rootDir: "./screenshots/",
plugins: {
log: {"enabled": true},
uiHierarchy: {"enabled": true},
Expand Down
22 changes: 0 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,28 +176,6 @@ After completion, the binary apps will be located in:

You can share the .apk files with others who need to run the Detox tests without building the Android app locally.

### Running the tests in Docker

The UI-based tests can be packaged to run in Docker (experimental at the time of writing).

- Follow the build steps above (keystore, detox android build) to generate the release build with the Detox version of the APK.
- Build the docker container from the provided Dockerfile:
```
docker build --network=host --tag inrupt-wallet-frontend-ui-tests:test .
```
- Run the docker container (after replacing the placeholders)
```
docker run -it \
--privileged \
--device /dev/kvm \
--mount type=bind,source=./screenshots/,target=/screenshots \
--env TEST_ACCOUNT_USERNAME=<test username> \
--env TEST_ACCOUNT_PASSWORD=<test user password> \
--env EXPO_PUBLIC_LOGIN_URL="https://datawallet.inrupt.com/oauth2/authorization/wallet-app" \
--env EXPO_PUBLIC_WALLET_API="https://datawallet.inrupt.com" \
inrupt-wallet-frontend-ui-tests:test
```

## UI overview

Upon execution, the application prompts the user to log in. After successful authentication, the wallet app presents various views, located in the `app/(tabs)` directory:
Expand Down

0 comments on commit e235929

Please sign in to comment.