1
0
Fork 0

For #4776: Refactored UI tests.

After removing the 'Privacy notice' and 'Help' items from the Settings screen
the UI tests for them became unneeded.
master
ValentinTimisica 2019-11-25 16:05:37 +02:00
parent b819cb11c9
commit 8b8f3d1b56
3 changed files with 0 additions and 13 deletions

View File

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

View File

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

View File

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