Skip to content

Commit

Permalink
For #6865 - UI Test fix Strict TP test (#6866)
Browse files Browse the repository at this point in the history
* For #6865 - UI Test fix Strict TP test

* update previous test
  • Loading branch information
isabelrios authored Jun 29, 2020
1 parent b4cfa5d commit 8e88884
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions UITests/TrackingProtectionTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class TrackingProtectionTests: KIFTestCase, TabEventHandler {
EarlGrey.selectElement(with: grey_accessibilityID("Settings.TrackingProtectionOption.BlockListStrict")).perform(grey_tap())

// Accept the warning alert when Strict mode is enabled
tester().waitForAnimationsToFinish()
tester().waitForAnimationsToFinish(withTimeout: 3)
tester().tapView(withAccessibilityLabel: "OK, Got It")
closeTPSetting()
}
Expand All @@ -164,7 +164,6 @@ class TrackingProtectionTests: KIFTestCase, TabEventHandler {
.perform(grey_tap())

checkStrictTrackingProtection(isBlocking: false, isTPDisabled: true)

enableStrictMode()

// Now with the TP enabled, the image should be blocked
Expand Down Expand Up @@ -210,5 +209,8 @@ class TrackingProtectionTests: KIFTestCase, TabEventHandler {
ContentBlocker.shared.clearSafelist() { clear1.fulfill() }
waitForExpectations(timeout: 10, handler: nil)
checkStrictTrackingProtection(isBlocking: true)
openTPSetting()
disableStrictTP()
closeTPSetting()
}
}

0 comments on commit 8e88884

Please sign in to comment.