Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update android universal apk path for e2e test #792

Merged
merged 3 commits into from
Jan 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/e2e-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 0 additions & 7 deletions e2e/02-login-flow.e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down
4 changes: 3 additions & 1 deletion e2e/config/wdio.conf.js
Original file line number Diff line number Diff line change
@@ -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,
Expand Down