From 3c94e9e6348942ac9dab7009f0aca50783a8b6ca Mon Sep 17 00:00:00 2001 From: nick theile Date: Thu, 5 Jan 2023 03:07:30 -0600 Subject: [PATCH] fix: update android universal apk path for e2e test (#792) * fix: update android universal apk path for e2e test * chore: remove config * fix: extra line --- docs/e2e-testing.md | 1 + e2e/02-login-flow.e2e.spec.ts | 7 ------- e2e/config/wdio.conf.js | 4 +++- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/docs/e2e-testing.md b/docs/e2e-testing.md index 1808a1466e..ef10935056 100644 --- a/docs/e2e-testing.md +++ b/docs/e2e-testing.md @@ -40,6 +40,7 @@ Android ``` TEST_DEVICE_ANDROID="Pixel 3 API 29" yarn test:e2e:android +TEST_APK_PATH="./android/app/build/outputs/apk/debug/app-universal-debug.apk" ``` IOS diff --git a/e2e/02-login-flow.e2e.spec.ts b/e2e/02-login-flow.e2e.spec.ts index 473a266552..ad152f5630 100644 --- a/e2e/02-login-flow.e2e.spec.ts +++ b/e2e/02-login-flow.e2e.spec.ts @@ -41,13 +41,6 @@ describe("Login Flow", async () => { await browser.pause(8000) }) - it("click Save Changes", async () => { - const changeTokenButton = await $(selector("Save Changes")) - await changeTokenButton.waitForDisplayed({ timeout }) - await changeTokenButton.click() - await browser.pause(2000) - }) - it("input token", async () => { try { const tokenInput = await $(selector("Input access token", "SecureTextField")) diff --git a/e2e/config/wdio.conf.js b/e2e/config/wdio.conf.js index d289652580..fa8f6b2e2d 100644 --- a/e2e/config/wdio.conf.js +++ b/e2e/config/wdio.conf.js @@ -1,7 +1,9 @@ let capabilities = { platformName: "Android", deviceName: process.env.TEST_DEVICE_ANDROID || "generic_x86", - app: "./android/app/build/outputs/apk/debug/app-debug.apk", // "./android/app/release/app-release.apk", + app: + process.env.TEST_APK_PATH || + "./android/app/build/outputs/apk/debug/app-universal-debug.apk", // "./android/app/release/app-release.apk", automationName: "UiAutomator2", snapshotMaxDepth: 1000, autoGrantPermissions: true,