From 7655dfc3bb131f5609970d0593d8505750aeebcc Mon Sep 17 00:00:00 2001 From: harvey186 Date: Wed, 11 Dec 2024 15:32:26 +0100 Subject: [PATCH] About Waterfox-LeOSium --- .../waterfox/android/ui/robots/SettingsRobot.kt | 14 +++++++------- .../android/ui/robots/SettingsSubMenuAboutRobot.kt | 6 +++--- app/src/main/res/values-en-rCA/strings.xml | 2 +- app/src/main/res/values-en-rGB/strings.xml | 2 +- app/src/main/res/values/strings.xml | 2 +- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/app/src/androidTest/java/net/waterfox/android/ui/robots/SettingsRobot.kt b/app/src/androidTest/java/net/waterfox/android/ui/robots/SettingsRobot.kt index b91f91a68..47afad415 100644 --- a/app/src/androidTest/java/net/waterfox/android/ui/robots/SettingsRobot.kt +++ b/app/src/androidTest/java/net/waterfox/android/ui/robots/SettingsRobot.kt @@ -556,17 +556,17 @@ private fun assertAboutHeading(): ViewInteraction { .check(matches(withEffectiveVisibility(Visibility.VISIBLE))) } -private fun rateOnGooglePlayHeading(): UiObject { - val rateOnGooglePlay = mDevice.findObject(UiSelector().text("Rate on Google Play")) - settingsList().scrollToEnd(LISTS_MAXSWIPES) - rateOnGooglePlay.waitForExists(waitingTime) +//private fun rateOnGooglePlayHeading(): UiObject { +// val rateOnGooglePlay = mDevice.findObject(UiSelector().text("Rate on Google Play")) +// settingsList().scrollToEnd(LISTS_MAXSWIPES) +// rateOnGooglePlay.waitForExists(waitingTime) - return rateOnGooglePlay -} + return rateOnGooglePlay// +//} private fun aboutWaterfoxHeading(): UiObject { settingsList().scrollToEnd(LISTS_MAXSWIPES) - return mDevice.findObject(UiSelector().text("About $appName")) + return mDevice.findObject(UiSelector().text("About LeOsium")) } fun swipeToBottom() = onView(withId(R.id.recycler_view)).perform(ViewActions.swipeUp()) diff --git a/app/src/androidTest/java/net/waterfox/android/ui/robots/SettingsSubMenuAboutRobot.kt b/app/src/androidTest/java/net/waterfox/android/ui/robots/SettingsSubMenuAboutRobot.kt index 18d5da9c4..b756fce0f 100644 --- a/app/src/androidTest/java/net/waterfox/android/ui/robots/SettingsSubMenuAboutRobot.kt +++ b/app/src/androidTest/java/net/waterfox/android/ui/robots/SettingsSubMenuAboutRobot.kt @@ -74,12 +74,12 @@ private fun assertAboutToolbar() = onView( allOf( withId(R.id.navigationToolbar), - hasDescendant(withText("About $appName")) + hasDescendant(withText("About LeOSium")) ) ).check(matches(withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE))) private fun assertProductCompany(rule: ComposeTestRule) { - rule.onNodeWithText("$appName is made by BrowserWorks.") + rule.onNodeWithText("LeOSium is made by Harvey186") .assertIsDisplayed() } @@ -207,7 +207,7 @@ private fun assertLibrariesUsed(rule: ComposeTestRule) { .assertIsDisplayed() .performClick() - onView(withId(R.id.navigationToolbar)).check(matches(hasDescendant(withText(containsString("$appName | OSS Libraries"))))) + onView(withId(R.id.navigationToolbar)).check(matches(hasDescendant(withText(containsString("LeOSium | OSS Libraries"))))) rule.onNodeWithTag("about.library.list") .performScrollToNode(hasText("org.mozilla.geckoview:geckoview", substring = true)) diff --git a/app/src/main/res/values-en-rCA/strings.xml b/app/src/main/res/values-en-rCA/strings.xml index 2e3cad6d9..25bec1174 100644 --- a/app/src/main/res/values-en-rCA/strings.xml +++ b/app/src/main/res/values-en-rCA/strings.xml @@ -294,7 +294,7 @@ Rate on Google Play - About %1$s + About LeOSium Set as default browser diff --git a/app/src/main/res/values-en-rGB/strings.xml b/app/src/main/res/values-en-rGB/strings.xml index a9c7a6f15..62f44606d 100644 --- a/app/src/main/res/values-en-rGB/strings.xml +++ b/app/src/main/res/values-en-rGB/strings.xml @@ -295,7 +295,7 @@ Rate on Google Play - About %1$s + About LeOSium Set as default browser diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 10750a871..00cbd2623 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -302,7 +302,7 @@ - About %1$s + About LeOSium Set as default browser -- 2.34.1