Skip to content

Commit

Permalink
Remove testCreateAccountAndLogout
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasberglund committed Aug 15, 2024
1 parent 09166be commit b6169e7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,6 @@ class AppInteractor(
ensureLoggedIn()
}

fun launchAndCreateAccount() {
launch()
device.clickAgreeOnPrivacyDisclaimer()
device.clickAllowOnNotificationPermissionPromptIfApiLevel33AndAbove()
waitForLoginPrompt()
attemptCreateAccount()
ensureAccountCreated()
}

fun attemptLogin(accountNumber: String) {
val loginObject =
device.findObjectWithTimeout(By.clazz("android.widget.EditText")).apply {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,4 @@ class LogoutTest : EndToEndTest(BuildConfig.FLAVOR_infrastructure) {
// Then
assertNotNull(device.findObjectWithTimeout(By.text("Login")))
}

@Test
fun testCreateAccountAndLogout() {
// Given
app.launchAndCreateAccount()

// When
app.clickAccountCog()
app.clickActionButtonByText("Log out")

// Then
assertNotNull(device.findObjectWithTimeout(By.text("Login")))
}
}

0 comments on commit b6169e7

Please sign in to comment.