Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Commit

Permalink
adding screenshots and test butler
Browse files Browse the repository at this point in the history
  • Loading branch information
ggilchrist-ledger committed Apr 29, 2022
1 parent a7ef3c6 commit 19dd63a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/detox-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,14 @@ jobs:
ram-size: 2048
# disable-animations: true
script: |
adb logcat -c
adb logcat *:E &
$ANDROID_HOME/platform-tools/adb devices
mkdir ./temp
curl -f -o ./temp/test-butler-app.apk https://repo1.maven.org/maven2/com/linkedin/testbutler/test-butler-app/2.2.1/test-butler-app-2.2.1.apk
adb install ./temp/test-butler-app.apk || adb install ./e2e/test-butler-app.apk
yarn e2e:test -c android.staging --loglevel verbose --record-logs failing --record-timeline all --take-screenshots failing
# adb logcat -c
# adb logcat *:E &
# $ANDROID_HOME/platform-tools/adb devices
# yarn start & yarn detox test -c android.debug --loglevel verbose --record-logs failing --record-timeline all --take-screenshots failing
# mkdir ./temp
# curl -f -o ./temp/test-butler-app.apk https://repo1.maven.org/maven2/com/linkedin/testbutler/test-butler-app/2.2.1/test-butler-app-2.2.1.apk
# adb install ./temp/test-butler-app.apk || adb install ./e2e/test-butler-app.apk
# adb logcat -c
# adb logcat *:E &

Expand Down
8 changes: 8 additions & 0 deletions e2e/models/onboarding/onboardingSteps.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,28 @@ export default class OnboardingSteps {

static async addDeviceViaBluetooth() {
console.log(`==================> Adding device`);
await device.takeScreenshot("pre add device");
bridge.addDevices();
await device.takeScreenshot("post add device");

console.log(`==================> tapping David's device`);
await testHelpers.delay(5000);
await device.takeScreenshot("pre tap Davids nano");
await testHelpers.tapByText("Nano X de David");
await device.takeScreenshot("post tap Davids nano");
// await testHelpers.waitAndTap(`DeviceItemEnter ${david}`);

// set globally installed apps on device?
console.log(`==================> setting installed apps`);
await device.takeScreenshot("pre set installed apps");
bridge.setInstalledApps();
await device.takeScreenshot("post set installed apps");

// open ledger manager
console.log(`==================> opening Ledger manager`);
await device.takeScreenshot("pre open ledger manager");
bridge.open();
await device.takeScreenshot("post open ledger manager");

// Continue to welcome screen
// await waitFor(
Expand Down

0 comments on commit 19dd63a

Please sign in to comment.