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

Commit

Permalink
adding trace logging and reinstalling app before test run
Browse files Browse the repository at this point in the history
  • Loading branch information
ggilchrist-ledger committed Apr 26, 2022
1 parent 00fb90e commit 8a7634f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/detox-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:

- name: Test iOS app
timeout-minutes: 15
run: yarn e2e:test -c ios.staging --loglevel verbose --record-logs failing --record-timeline all --take-screenshots failing
run: yarn e2e:test -c ios.staging --loglevel trace --record-logs failing --record-timeline all --take-screenshots failing
# --retries 1 --reuse

- name: Upload test artifacts
Expand Down Expand Up @@ -156,7 +156,7 @@ jobs:
adb logcat -c
adb logcat *:E &
$ANDROID_HOME/platform-tools/adb devices
yarn e2e:test -c android.staging --loglevel verbose --record-logs failing --record-timeline all --take-screenshots failing
yarn e2e:test -c android.staging --loglevel trace --record-logs failing --record-timeline all --take-screenshots failing
# 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
Expand Down
5 changes: 2 additions & 3 deletions e2e/specs/onboarding.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ import PortfolioPage from "../models/portfolioPage";
describe("Onboarding", () => {
beforeAll(async () => {
console.log("==============> STARTING ONBOARDING DEVICE LAUNCH");
// await device.launchApp({ newInstance: false });
// await device.reloadReactNative();
console.log("==============> LAUNCH APP BEFORE ALL");
await device.launchApp({ newInstance: true });
// await device.launchApp({ newInstance: true });
await device.launchApp({ delete: true });
});

it("should be able to connect a Nano X", async () => {
Expand Down
2 changes: 1 addition & 1 deletion e2e/specs/password.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe("Password Lock Screen", () => {
// await device.launchApp({ newInstance: false });
// await device.reloadReactNative();
console.log("==============> LAUNCH APP BEFORE ALL");
await device.launchApp({ newInstance: true });
await device.launchApp({ delete: true });
});

it("should be able to enter the correct password", async () => {
Expand Down

0 comments on commit 8a7634f

Please sign in to comment.