|
|
|
@ -28,6 +28,7 @@ import org.mozilla.fenix.helpers.TestHelper.packageName
|
|
|
|
|
import org.mozilla.fenix.helpers.TestHelper.restartApp
|
|
|
|
|
import org.mozilla.fenix.helpers.TestHelper.scrollToElementByText
|
|
|
|
|
import org.mozilla.fenix.helpers.TestHelper.verifySnackBarText
|
|
|
|
|
import org.mozilla.fenix.helpers.TestHelper.waitForAppWindowToBeUpdated
|
|
|
|
|
import org.mozilla.fenix.ui.robots.browserScreen
|
|
|
|
|
import org.mozilla.fenix.ui.robots.clearTextFieldItem
|
|
|
|
|
import org.mozilla.fenix.ui.robots.clickPageObject
|
|
|
|
@ -260,12 +261,16 @@ class LoginsTest {
|
|
|
|
|
navigationToolbar {
|
|
|
|
|
}.enterURLAndEnterToBrowser(loginPage.toUri()) {
|
|
|
|
|
setPageObjectText(itemWithResId("username"), firstUser)
|
|
|
|
|
waitForAppWindowToBeUpdated()
|
|
|
|
|
setPageObjectText(itemWithResId("password"), firstPass)
|
|
|
|
|
waitForAppWindowToBeUpdated()
|
|
|
|
|
clickPageObject(itemWithResId("submit"))
|
|
|
|
|
verifySaveLoginPromptIsDisplayed()
|
|
|
|
|
clickPageObject(itemWithText("Save"))
|
|
|
|
|
setPageObjectText(itemWithResId("username"), secondUser)
|
|
|
|
|
waitForAppWindowToBeUpdated()
|
|
|
|
|
setPageObjectText(itemWithResId("password"), secondPass)
|
|
|
|
|
waitForAppWindowToBeUpdated()
|
|
|
|
|
clickPageObject(itemWithResId("submit"))
|
|
|
|
|
verifySaveLoginPromptIsDisplayed()
|
|
|
|
|
clickPageObject(itemWithText("Save"))
|
|
|
|
|