forked from mirrors/gecko-dev
Bug 1812995 - Fix doNotSaveOptionWillNotUpdateALoginTest UI test r=ohorvath
The problem occurred after submitting the second batch of credentials (the save login prompt wasn't displayed) To overcome this problem, I've tried to improve the syncing after each login credential filing action I've also removed some redundant steps from the UI test ✅ The UI test successfully passed 150x on Firebase Differential Revision: https://phabricator.services.mozilla.com/D207434
This commit is contained in:
parent
b6d4b728c3
commit
712dfef63e
1 changed files with 5 additions and 8 deletions
|
|
@ -8,7 +8,6 @@ import android.os.Build
|
|||
import android.view.autofill.AutofillManager
|
||||
import androidx.core.net.toUri
|
||||
import org.junit.Before
|
||||
import org.junit.Ignore
|
||||
import org.junit.Rule
|
||||
import org.junit.Test
|
||||
import org.mozilla.fenix.customannotations.SmokeTest
|
||||
|
|
@ -538,7 +537,6 @@ class LoginsTest : TestSetup() {
|
|||
}
|
||||
|
||||
// TestRail link: https://testrail.stage.mozaws.net/index.php?/cases/view/593768
|
||||
@Ignore("Failing, see: https://bugzilla.mozilla.org/show_bug.cgi?id=1812995")
|
||||
@Test
|
||||
fun doNotSaveOptionWillNotUpdateALoginTest() {
|
||||
val loginPage = "https://mozilla-mobile.github.io/testapp/v2.0/loginForm.html"
|
||||
|
|
@ -547,19 +545,18 @@ class LoginsTest : TestSetup() {
|
|||
navigationToolbar {
|
||||
}.enterURLAndEnterToBrowser(loginPage.toUri()) {
|
||||
setPageObjectText(itemWithResId("username"), "mozilla")
|
||||
waitForAppWindowToBeUpdated()
|
||||
setPageObjectText(itemWithResId("password"), "firefox")
|
||||
waitForAppWindowToBeUpdated()
|
||||
clickPageObject(itemWithResId("submit"))
|
||||
verifySaveLoginPromptIsDisplayed()
|
||||
clickPageObject(itemWithText("Save"))
|
||||
}.openTabDrawer {
|
||||
closeTab()
|
||||
}
|
||||
|
||||
navigationToolbar {
|
||||
}.enterURLAndEnterToBrowser(loginPage.toUri()) {
|
||||
waitForAppWindowToBeUpdated()
|
||||
clickPageObject(itemWithResId("togglePassword"))
|
||||
setPageObjectText(itemWithResId("username"), "mozilla")
|
||||
waitForAppWindowToBeUpdated()
|
||||
setPageObjectText(itemWithResId("password"), "fenix")
|
||||
waitForAppWindowToBeUpdated()
|
||||
clickPageObject(itemWithResId("submit"))
|
||||
verifySaveLoginPromptIsDisplayed()
|
||||
clickPageObject(itemWithText("Don’t update"))
|
||||
|
|
|
|||
Loading…
Reference in a new issue