Bug 1858875 - Workaround to open the ETP settings when the button is not available in the quick action sheet r=ajoltan DONTBUILD

The test is sometimes flaky when the network connection is bad and trackers don't get blocked, so the protection quick settings sheet doesn't have a "Details" section which contains the button for the ETP settings.
Re-ran the test 50 times, all green: https://treeherder.mozilla.org/jobs?repo=try&revision=9f4373ed5f749ee72d64cf4c490d25470a77fa27&selectedTaskRun=AOedklhKSBiM6cwpudB1_w.0

Differential Revision: https://phabricator.services.mozilla.com/D211523
This commit is contained in:
oana.horvath 2024-05-27 07:10:06 +00:00
parent 3eaca13506
commit d5bd7b2e18

View File

@ -175,7 +175,10 @@ class EnhancedTrackingProtectionTest : TestSetup() {
}.openEnhancedTrackingProtectionSheet {
}.toggleEnhancedTrackingProtectionFromSheet {
verifyEnhancedTrackingProtectionSheetStatus("ON", true)
}.openProtectionSettings {
}.closeEnhancedTrackingProtectionSheet {
}.openThreeDotMenu {
}.openSettings {
}.openEnhancedTrackingProtectionSubMenu {
}.openExceptions {
verifySiteExceptionExists(trackingPage.url.host.toString(), false)
}