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 13d158d commit fbf945d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package net.mullvad.mullvadvpn.test.common.interactor

import android.content.Context
import android.content.Intent
import android.widget.Button
import android.widget.ImageButton
import androidx.test.uiautomator.By
import androidx.test.uiautomator.UiDevice
Expand Down Expand Up @@ -54,7 +55,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 fbf945d

Please sign in to comment.