2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-03 23:15:31 +00:00

[fenix] For https://github.com/mozilla-mobile/fenix/issues/18986: re-enable changeAccessibiltySettings UI test, not failing anymore

This commit is contained in:
Oana Horvath 2021-06-08 12:47:33 +03:00
parent 2abb02d374
commit 3646becb54
2 changed files with 5 additions and 2 deletions

View File

@ -161,7 +161,6 @@ class SettingsBasicsTest {
}
}
@Ignore("Failing, see: https://github.com/mozilla-mobile/fenix/issues/18986")
@Test
fun changeAccessibiltySettings() {
// Goes through the settings and changes the default text on a webpage, then verifies if the text has changed.

View File

@ -148,15 +148,19 @@ class SettingsRobot {
}
fun openAccessibilitySubMenu(interact: SettingsSubMenuAccessibilityRobot.() -> Unit): SettingsSubMenuAccessibilityRobot.Transition {
scrollToElementByText("Accessibility")
fun accessibilityButton() = onView(withText("Accessibility"))
accessibilityButton().click()
accessibilityButton()
.check(matches(isDisplayed()))
.click()
SettingsSubMenuAccessibilityRobot().interact()
return SettingsSubMenuAccessibilityRobot.Transition()
}
fun openLanguageSubMenu(interact: SettingsSubMenuLanguageRobot.() -> Unit): SettingsSubMenuLanguageRobot.Transition {
scrollToElementByText("Language")
fun languageButton() = onView(withText("Language"))
languageButton().click()