Skip to content

Commit

Permalink
Fix login test
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawa committed Sep 22, 2023
1 parent c9acd7b commit 5d18d0b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package net.mullvad.mullvadvpn.test.common.interactor

import android.content.Context
import android.content.Intent
import android.widget.ImageButton
import android.widget.Button
import androidx.test.uiautomator.By
import androidx.test.uiautomator.UiDevice
import androidx.test.uiautomator.Until
Expand Down Expand Up @@ -54,7 +54,7 @@ class AppInteractor(private val device: UiDevice, private val targetContext: Con
device.findObjectWithTimeout(By.clazz("android.widget.EditText")).apply {
text = accountToken
}
loginObject.parent.findObject(By.clazz(ImageButton::class.java)).click()
loginObject.parent.findObject(By.clazz(Button::class.java)).click()
}

fun ensureLoggedIn() {
Expand Down

0 comments on commit 5d18d0b

Please sign in to comment.