Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

Commit

Permalink
Revert "806-uitest-add-delete (#808)"
Browse files Browse the repository at this point in the history
This reverts commit ec56009.
  • Loading branch information
Elise Richards committed Jul 19, 2019
1 parent 43d6d0a commit b8b1cf6
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 73 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ class ItemDetailRobot : BaseTestRobot {
fun toastIsDisplayed(id: Int, activityRule: ActivityTestRule<RootActivity>) =
onView(withText(id)).inRoot(withDecorView(not(`is`(activityRule.activity.getWindow().decorView))))
.check(matches(isDisplayed()))

fun tapKebabMenu() = ClickActions.click { id(R.id.kebabMenu) }
}

fun itemDetail(f: ItemDetailRobot.() -> Unit) = ItemDetailRobot().apply(f)
21 changes: 0 additions & 21 deletions app/src/androidTest/java/mozilla/lockbox/robots/KebabMenuRobot.kt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import kotlinx.coroutines.ExperimentalCoroutinesApi
import mozilla.lockbox.R
import mozilla.lockbox.robots.itemDetail
import mozilla.lockbox.robots.itemList
import mozilla.lockbox.robots.kebabMenu
import mozilla.lockbox.robots.deleteCredentialDisclaimer
import mozilla.lockbox.view.RootActivity
import org.junit.Rule
import org.junit.Test
Expand Down Expand Up @@ -42,22 +40,4 @@ open class ItemDetailsTest {
itemDetail { tapCopyPass() }
itemDetail { toastIsDisplayed(R.string.toast_password_copied, activityRule) }
}

@Test
fun deleteItem() {
navigator.gotoItemDetailKebabMenu()
kebabMenu { tapDeleteButton() }
// First tap on Cancel delete credencial
deleteCredentialDisclaimer { tapCancelButton() }
itemDetail { exists() }
// Now delete the credential
// Disabled until issue #807 is fixed
// and logins can be added after removal
/*
itemDetail { tapKebabMenu() }
kebabMenu { tapDeleteButton() }
deleteCredentialDisclaimer { tapDeleteButton() }
itemList { exists() }
*/
}
}
8 changes: 0 additions & 8 deletions app/src/androidTest/java/mozilla/lockbox/uiTests/Navigator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import mozilla.lockbox.robots.fingerprintOnboardingScreen
import mozilla.lockbox.robots.fxaLogin
import mozilla.lockbox.robots.itemDetail
import mozilla.lockbox.robots.itemList
import mozilla.lockbox.robots.kebabMenu
import mozilla.lockbox.robots.lockScreen
import mozilla.lockbox.robots.onboardingConfirmationScreen
import mozilla.lockbox.robots.securityDisclaimer
Expand Down Expand Up @@ -293,13 +292,6 @@ class Navigator {
itemDetail { exists() }
}

fun gotoItemDetailKebabMenu(position: Int = 0) {
gotoItemList()
gotoItemDetail_from_itemList(position)
itemDetail { tapKebabMenu() }
kebabMenu { exists() }
}

fun back(remainInApplication: Boolean = true) {
closeSoftKeyboard()
try {
Expand Down

0 comments on commit b8b1cf6

Please sign in to comment.