commit be832713470b14b35ff01d189baf7d0079cdcf71
parent ad2f25ae659bd4bf1af59adb6d26da4357d674b1
Author: AndiAJ <andiaj@users.noreply.github.com>
Date: Thu, 8 Jan 2026 15:25:21 +0000
Bug 2009151 - Remove duplicate font sizing related UI test r=dpop
The UI test was disabled by @rebecatudor273 in [[ https://bugzilla.mozilla.org/show_bug.cgi?id=1975017 | 1975017 ]]
After taking a closer look this, the test from the **NavigationToolbarTest** class is the same with the one from **SettingsGeneralTest**
Differential Revision: https://phabricator.services.mozilla.com/D278275
Diffstat:
2 files changed, 1 insertion(+), 46 deletions(-)
diff --git a/mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/NavigationToolbarTest.kt b/mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/NavigationToolbarTest.kt
@@ -212,51 +212,6 @@ class NavigationToolbarTest : TestSetup() {
}
}
- // TestRail link: https://mozilla.testrail.io/index.php?/cases/view/3135005
- @Ignore("Failing, see https://bugzilla.mozilla.org/show_bug.cgi?id=2007909")
- @Test
- fun verifyFontSizingChangeTest() {
- runWithCondition(
- composeTestRule.activity.components.core.engine.version.releaseChannel !== EngineReleaseChannel.BETA &&
- composeTestRule.activity.components.core.engine.version.releaseChannel !== EngineReleaseChannel.RELEASE,
- ) {
- // Goes through the settings and changes the default text on a webpage, then verifies if the text has changed.
- val fenixApp = composeTestRule.activity.applicationContext as FenixApplication
- val webpage = mockWebServer.loremIpsumAsset.url
-
- // This value will represent the text size percentage the webpage will scale to. The default value is 100%.
- val textSizePercentage = 180
-
- homeScreen(composeTestRule) {
- }.openThreeDotMenu {
- }.clickSettingsButton {
- }.openAccessibilitySubMenu {
- clickFontSizingSwitch()
- verifyFontSizingMenuItems(
- composeTestRule,
- isTheAutomaticFontSizingToggleChecked = true,
- isTheFontSizingSliderEnabled = false,
- isTheZoomOnAllWbsitesToggleChecked = false,
- )
- clickFontSizingSwitch()
- verifyFontSizingMenuItems(
- composeTestRule,
- isTheAutomaticFontSizingToggleChecked = false,
- isTheFontSizingSliderEnabled = true,
- isTheZoomOnAllWbsitesToggleChecked = false,
- )
- changeTextSizeSlider(textSizePercentage, composeTestRule)
- verifyTextSizePercentage(textSizePercentage, composeTestRule)
- }.goBack {
- }.goBack(composeTestRule) {
- }
- navigationToolbar(composeTestRule) {
- }.enterURLAndEnterToBrowser(webpage) {
- checkTextSizeOnWebsite(textSizePercentage, fenixApp.components)
- }
- }
- }
-
// TestRail link: https://mozilla.testrail.io/index.php?/cases/view/3135034
@SmokeTest
@Test
diff --git a/mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/SettingsGeneralTest.kt b/mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/SettingsGeneralTest.kt
@@ -68,7 +68,7 @@ class SettingsGeneralTest : TestSetup() {
}
}
- // TestRail link: https://mozilla.testrail.io/index.php?/cases/view/344213
+ // TestRail link: https://mozilla.testrail.io/index.php?/cases/view/3135005
@SmokeTest
@Test
fun verifyFontSizingChangeTest() {