Commit 3ec79881 authored by Dan Ballard's avatar Dan Ballard Committed by Pier Angelo Vendrame
Browse files

fixup! [android] Modify UI/UX

TB 44785: Comment out use of remove trackingProtectionSwitch in SiteSecurityRobot.kt test file
parent f4c0f646
Loading
Loading
Loading
Loading
Loading
+10 −10
Original line number Diff line number Diff line
@@ -88,15 +88,15 @@ class SiteSecurityRobot {
    fun verifyETPSwitchVisibility(visible: Boolean) {
        waitForAppWindowToBeUpdated()
        if (visible) {
            Log.i(TAG, "verifyETPSwitchVisibility: Trying to verify ETP toggle is displayed")
            enhancedTrackingProtectionSwitch()
                .check(matches(isDisplayed()))
            Log.i(TAG, "verifyETPSwitchVisibility: Verified ETP toggle is displayed")
//            Log.i(TAG, "verifyETPSwitchVisibility: Trying to verify ETP toggle is displayed")
//            enhancedTrackingProtectionSwitch()
//                .check(matches(isDisplayed()))
//            Log.i(TAG, "verifyETPSwitchVisibility: Verified ETP toggle is displayed")
        } else {
            Log.i(TAG, "verifyETPSwitchVisibility: Trying to verify ETP toggle is not displayed")
            enhancedTrackingProtectionSwitch()
                .check(matches(not(isDisplayed())))
            Log.i(TAG, "verifyETPSwitchVisibility: Verified ETP toggle is not displayed")
//            Log.i(TAG, "verifyETPSwitchVisibility: Trying to verify ETP toggle is not displayed")
//            enhancedTrackingProtectionSwitch()
//                .check(matches(not(isDisplayed())))
//            Log.i(TAG, "verifyETPSwitchVisibility: Verified ETP toggle is not displayed")
        }
    }

@@ -242,8 +242,8 @@ private fun clearSiteDataPrompt(url: String) =
private fun cancelClearSiteDataButton() = onView(withId(android.R.id.button2)).inRoot(RootMatchers.isDialog())
private fun deleteSiteDataButton() = onView(withId(android.R.id.button1)).inRoot(RootMatchers.isDialog())

private fun enhancedTrackingProtectionSwitch() =
    onView(withId(R.id.trackingProtectionSwitch))
//private fun enhancedTrackingProtectionSwitch() =
//    onView(withId(R.id.trackingProtectionSwitch))

private fun openEnhancedTrackingProtectionDetails() =
    mDevice.findObject(UiSelector().resourceId("$packageName:id/trackingProtectionDetails"))