Bug 1882213 - Fix address autofill view test over-scrolling.

fenix/125.0
Issam Mani 3 months ago committed by mergify[bot]
parent de365d74c6
commit b44e798924

@ -4,7 +4,6 @@
package org.mozilla.fenix.ui
import org.junit.Ignore
import org.junit.Rule
import org.junit.Test
import org.mozilla.fenix.customannotations.SmokeTest
@ -117,7 +116,6 @@ class AddressAutofillTest : TestSetup() {
}
// TestRail link: https://testrail.stage.mozaws.net/index.php?/cases/view/1836840
@Ignore("Disabled: https://bugzilla.mozilla.org/show_bug.cgi?id=1882170")
@Test
fun verifyAddAddressViewTest() {
homeScreen {
@ -132,7 +130,6 @@ class AddressAutofillTest : TestSetup() {
}
// TestRail link: https://testrail.stage.mozaws.net/index.php?/cases/view/1836841
@Ignore("Disabled: https://bugzilla.mozilla.org/show_bug.cgi?id=1882170")
@Test
fun verifyEditAddressViewTest() {
autofillScreen {

@ -154,23 +154,18 @@ class SettingsSubMenuAutofillRobot {
navigateBackButton(),
toolbarCheckmarkButton(),
nameTextInput(),
)
scrollToElementByText(getStringResource(R.string.addresses_street_address))
assertUIObjectExists(
streetAddressTextInput(),
)
scrollToElementByText(getStringResource(R.string.addresses_country))
assertUIObjectExists(
cityTextInput(),
subRegionDropDown(),
zipCodeTextInput(),
)
scrollToElementByText(getStringResource(R.string.addresses_save_button))
scrollToElementByText(getStringResource(R.string.addresses_country))
assertUIObjectExists(
zipCodeTextInput(),
countryDropDown(),
phoneTextInput(),
emailTextInput(),
)
scrollToElementByText(getStringResource(R.string.addresses_save_button))
assertUIObjectExists(
saveButton(),
cancelButton(),
@ -214,23 +209,18 @@ class SettingsSubMenuAutofillRobot {
toolbarDeleteAddressButton(),
toolbarCheckmarkButton(),
nameTextInput(),
)
scrollToElementByText(getStringResource(R.string.addresses_street_address))
assertUIObjectExists(
streetAddressTextInput(),
)
scrollToElementByText(getStringResource(R.string.addresses_country))
assertUIObjectExists(
cityTextInput(),
subRegionDropDown(),
zipCodeTextInput(),
)
scrollToElementByText(getStringResource(R.string.addresses_save_button))
scrollToElementByText(getStringResource(R.string.addresses_country))
assertUIObjectExists(
zipCodeTextInput(),
countryDropDown(),
phoneTextInput(),
emailTextInput(),
)
scrollToElementByText(getStringResource(R.string.addresses_save_button))
assertUIObjectExists(
saveButton(),
cancelButton(),

Loading…
Cancel
Save