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
parent
b819cb11c9
commit
8b8f3d1b56
|
@ -52,7 +52,6 @@ class SettingsAboutTest {
|
|||
}.openSettings {
|
||||
// ABOUT
|
||||
verifyAboutHeading()
|
||||
verifyHelp()
|
||||
verifyRateOnGooglePlay()
|
||||
verifyAboutFirefoxPreview()
|
||||
}
|
||||
|
|
|
@ -103,7 +103,6 @@ class SettingsPrivacyTest {
|
|||
verifyDeleteBrowsingDataButton()
|
||||
verifyDeleteBrowsingDataOnQuitButton()
|
||||
verifyDataCollectionButton()
|
||||
verifyPrivacyNoticeButton()
|
||||
verifyLeakCanaryButton()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"))
|
||||
|
|
Loading…
Reference in New Issue