From 3809132a68468573644671ceab1c75315941f5d7 Mon Sep 17 00:00:00 2001 From: ATeal <5629145+ATeal@users.noreply.github.com> Date: Fri, 6 Dec 2024 11:47:50 -0500 Subject: [PATCH 1/2] Adds an "attached" profile for detox - primarily the goal is to allow e2e tests to be run via adb - adb is the primary way in which WSL communicates with android devies - could also allow for e2e to be run on phsyical android devices --- VAMobile/.detoxrc.json | 16 ++++++++++++++++ VAMobile/package.json | 2 ++ 2 files changed, 18 insertions(+) diff --git a/VAMobile/.detoxrc.json b/VAMobile/.detoxrc.json index 45067b8a2a..0b7dcf783a 100644 --- a/VAMobile/.detoxrc.json +++ b/VAMobile/.detoxrc.json @@ -36,6 +36,18 @@ "device": { "avdName": "Pixel_6_Pro_API_33" } + }, + "attached": { + "type": "android.attached", + "device": { + "adbName": ".*" + } + }, + "attached": { + "type": "android.attached", + "device": { + "adbName": ".*" + } } }, "configurations": { @@ -47,6 +59,10 @@ "android": { "device": "emulator", "app": "android" + }, + "attached": { + "device": "attached", + "app": "android" } }, "behavior": { diff --git a/VAMobile/package.json b/VAMobile/package.json index 1876a97d13..d34469474d 100644 --- a/VAMobile/package.json +++ b/VAMobile/package.json @@ -32,6 +32,8 @@ "e2e:ios-test": "yarn jest:clear && detox test -c ios --cleanup --record-logs all", "e2e:android-build": " yarn run bundle:android && detox build -c android", "e2e:android-test": "yarn jest:clear && detox test -c android --cleanup", + "e2e:attached-build": "yarn run bundle:android && detox build -c attached", + "e2e:attached-test": "yarn jest:clear && detox test -c attached --cleanup", "docs": "yarn && cd documentation && yarn && yarn start", "nodes": "rm -rf node_modules && yarn install", "pods": "cd ios && pod install && cd .." From 30403abfb9f4a78349100bee9e3d41a8dc7ff0bf Mon Sep 17 00:00:00 2001 From: ATeal <5629145+ATeal@users.noreply.github.com> Date: Fri, 6 Dec 2024 11:55:35 -0500 Subject: [PATCH 2/2] not sure how that got in there twice --- VAMobile/.detoxrc.json | 6 ------ 1 file changed, 6 deletions(-) diff --git a/VAMobile/.detoxrc.json b/VAMobile/.detoxrc.json index 0b7dcf783a..ce9a2b79f0 100644 --- a/VAMobile/.detoxrc.json +++ b/VAMobile/.detoxrc.json @@ -37,12 +37,6 @@ "avdName": "Pixel_6_Pro_API_33" } }, - "attached": { - "type": "android.attached", - "device": { - "adbName": ".*" - } - }, "attached": { "type": "android.attached", "device": {