After removing the 'Privacy notice' and 'Help' items from the Settings screen
the UI tests for them became unneeded.
pull/600/head
ValentinTimisica 5 years ago
parent f88065117a
commit 3987045df8

@ -52,7 +52,6 @@ class SettingsAboutTest {
}.openSettings { }.openSettings {
// ABOUT // ABOUT
verifyAboutHeading() verifyAboutHeading()
verifyHelp()
verifyRateOnGooglePlay() verifyRateOnGooglePlay()
verifyAboutFirefoxPreview() verifyAboutFirefoxPreview()
} }

@ -103,7 +103,6 @@ class SettingsPrivacyTest {
verifyDeleteBrowsingDataButton() verifyDeleteBrowsingDataButton()
verifyDeleteBrowsingDataOnQuitButton() verifyDeleteBrowsingDataOnQuitButton()
verifyDataCollectionButton() verifyDataCollectionButton()
verifyPrivacyNoticeButton()
verifyLeakCanaryButton() verifyLeakCanaryButton()
} }
} }

@ -47,7 +47,6 @@ class SettingsRobot {
fun verifyDeleteBrowsingDataButton() = assertDeleteBrowsingDataButton() fun verifyDeleteBrowsingDataButton() = assertDeleteBrowsingDataButton()
fun verifyDeleteBrowsingDataOnQuitButton() = assertDeleteBrowsingDataOnQuitButton() fun verifyDeleteBrowsingDataOnQuitButton() = assertDeleteBrowsingDataOnQuitButton()
fun verifyDataCollectionButton() = assertDataCollectionButton() fun verifyDataCollectionButton() = assertDataCollectionButton()
fun verifyPrivacyNoticeButton() = assertPrivacyNoticeButton()
fun verifyLeakCanaryButton() = assertLeakCanaryButton() fun verifyLeakCanaryButton() = assertLeakCanaryButton()
fun verifySettingsView() = assertSettingsView() fun verifySettingsView() = assertSettingsView()
@ -59,7 +58,6 @@ class SettingsRobot {
// ABOUT SECTION // ABOUT SECTION
fun verifyAboutHeading() = assertAboutHeading() fun verifyAboutHeading() = assertAboutHeading()
fun verifyHelp() = assertHelp()
fun verifyRateOnGooglePlay() = assertRateOnGooglePlay() fun verifyRateOnGooglePlay() = assertRateOnGooglePlay()
fun verifyAboutFirefoxPreview() = assertAboutFirefoxPreview() fun verifyAboutFirefoxPreview() = assertAboutFirefoxPreview()
@ -191,9 +189,6 @@ private fun assertDeleteBrowsingDataOnQuitButton() {
private fun assertDataCollectionButton() = onView(ViewMatchers.withText("Data collection")) private fun assertDataCollectionButton() = onView(ViewMatchers.withText("Data collection"))
.check(matches(withEffectiveVisibility(Visibility.VISIBLE))) .check(matches(withEffectiveVisibility(Visibility.VISIBLE)))
private fun assertPrivacyNoticeButton() = onView(ViewMatchers.withText("Privacy notice"))
.check(matches(withEffectiveVisibility(Visibility.VISIBLE)))
private fun assertLeakCanaryButton() = onView(ViewMatchers.withText("LeakCanary")) private fun assertLeakCanaryButton() = onView(ViewMatchers.withText("LeakCanary"))
.check(matches(withEffectiveVisibility(Visibility.VISIBLE))) .check(matches(withEffectiveVisibility(Visibility.VISIBLE)))
@ -214,12 +209,6 @@ private fun assertAboutHeading() {
.check(matches(withEffectiveVisibility(Visibility.VISIBLE))) .check(matches(withEffectiveVisibility(Visibility.VISIBLE)))
} }
private fun assertHelp() {
TestHelper.scrollToElementByText("About Firefox Preview")
onView(ViewMatchers.withText("Help"))
.check(matches(withEffectiveVisibility(Visibility.VISIBLE)))
}
private fun assertRateOnGooglePlay() { private fun assertRateOnGooglePlay() {
TestHelper.scrollToElementByText("About Firefox Preview") TestHelper.scrollToElementByText("About Firefox Preview")
onView(ViewMatchers.withText("Rate on Google Play")) onView(ViewMatchers.withText("Rate on Google Play"))

Loading…
Cancel
Save