diff --git a/.detoxrc.js b/.detoxrc.js index 27bd6b5..1143c10 100644 --- a/.detoxrc.js +++ b/.detoxrc.js @@ -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: { @@ -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}, diff --git a/README.md b/README.md index 517d9ad..d7d599d 100644 --- a/README.md +++ b/README.md @@ -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= \ - --env TEST_ACCOUNT_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: