Closes #14522: item 'Open link in apps' moved

pull/58/head
Oana Horvath 4 years ago
parent 8f71704c1f
commit 1e7faa693f

@ -52,6 +52,8 @@ class SettingsAdvancedTest {
// ADVANCED
verifyAdvancedHeading()
verifyAddons()
verifyOpenLinksInAppsButton()
verifyOpenLinksInAppsSwitchDefault()
verifyRemoteDebug()
verifyLeakCanaryButton()
}

@ -147,10 +147,6 @@ class SettingsPrivacyTest {
verifyNavigationToolBarHeader()
verifyDataCollectionSubMenuItems()
}.goBack {
// OPEN LINKS IN APPS
verifyOpenLinksInAppsButton()
verifyOpenLinksInAppsSwitchDefault()
}.goBack {
verifyHomeComponent()
}

@ -345,11 +345,16 @@ private fun assertDataCollectionButton() = onView(withText("Data collection"))
private fun openLinksInAppsButton() = onView(withText("Open links in apps"))
private fun assertOpenLinksInAppsButton() = openLinksInAppsButton()
.check(matches(withEffectiveVisibility(Visibility.VISIBLE)))
private fun assertOpenLinksInAppsButton() {
scrollToElementByText("Open links in apps")
openLinksInAppsButton()
.check(matches(withEffectiveVisibility(Visibility.VISIBLE)))
}
private fun assertOpenLinksInAppsValue() = openLinksInAppsButton()
.assertIsEnabled(isEnabled = true)
private fun assertOpenLinksInAppsValue() {
scrollToElementByText("Open links in apps")
openLinksInAppsButton().assertIsEnabled(isEnabled = true)
}
// DEVELOPER TOOLS SECTION
private fun assertDeveloperToolsHeading() {

Loading…
Cancel
Save