| ... |
... |
@@ -88,15 +88,15 @@ class SiteSecurityRobot { |
|
88
|
88
|
fun verifyETPSwitchVisibility(visible: Boolean) {
|
|
89
|
89
|
waitForAppWindowToBeUpdated()
|
|
90
|
90
|
if (visible) {
|
|
91
|
|
- Log.i(TAG, "verifyETPSwitchVisibility: Trying to verify ETP toggle is displayed")
|
|
92
|
|
- enhancedTrackingProtectionSwitch()
|
|
93
|
|
- .check(matches(isDisplayed()))
|
|
94
|
|
- Log.i(TAG, "verifyETPSwitchVisibility: Verified ETP toggle is displayed")
|
|
|
91
|
+// Log.i(TAG, "verifyETPSwitchVisibility: Trying to verify ETP toggle is displayed")
|
|
|
92
|
+// enhancedTrackingProtectionSwitch()
|
|
|
93
|
+// .check(matches(isDisplayed()))
|
|
|
94
|
+// Log.i(TAG, "verifyETPSwitchVisibility: Verified ETP toggle is displayed")
|
|
95
|
95
|
} else {
|
|
96
|
|
- Log.i(TAG, "verifyETPSwitchVisibility: Trying to verify ETP toggle is not displayed")
|
|
97
|
|
- enhancedTrackingProtectionSwitch()
|
|
98
|
|
- .check(matches(not(isDisplayed())))
|
|
99
|
|
- Log.i(TAG, "verifyETPSwitchVisibility: Verified ETP toggle is not displayed")
|
|
|
96
|
+// Log.i(TAG, "verifyETPSwitchVisibility: Trying to verify ETP toggle is not displayed")
|
|
|
97
|
+// enhancedTrackingProtectionSwitch()
|
|
|
98
|
+// .check(matches(not(isDisplayed())))
|
|
|
99
|
+// Log.i(TAG, "verifyETPSwitchVisibility: Verified ETP toggle is not displayed")
|
|
100
|
100
|
}
|
|
101
|
101
|
}
|
|
102
|
102
|
|
| ... |
... |
@@ -242,8 +242,8 @@ private fun clearSiteDataPrompt(url: String) = |
|
242
|
242
|
private fun cancelClearSiteDataButton() = onView(withId(android.R.id.button2)).inRoot(RootMatchers.isDialog())
|
|
243
|
243
|
private fun deleteSiteDataButton() = onView(withId(android.R.id.button1)).inRoot(RootMatchers.isDialog())
|
|
244
|
244
|
|
|
245
|
|
-private fun enhancedTrackingProtectionSwitch() =
|
|
246
|
|
- onView(withId(R.id.trackingProtectionSwitch))
|
|
|
245
|
+//private fun enhancedTrackingProtectionSwitch() =
|
|
|
246
|
+// onView(withId(R.id.trackingProtectionSwitch))
|
|
247
|
247
|
|
|
248
|
248
|
private fun openEnhancedTrackingProtectionDetails() =
|
|
249
|
249
|
mDevice.findObject(UiSelector().resourceId("$packageName:id/trackingProtectionDetails")) |