Skip to content

Commit 8511f0c

Browse files
authored
Tracy/ Skip new failing tests (#839)
1 parent aa94934 commit 8511f0c

File tree

5 files changed

+33
-13
lines changed

5 files changed

+33
-13
lines changed

modules/browser_object_tracker_panel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def wait_for_blocked_tracking_icon(
7676
self, nav: Navigation, page: BasePage
7777
) -> BasePage:
7878
"""
79-
Waits for the shield icon to indicate that cookies/trackers are being blocked by continuously refresing the page
79+
Waits for the shield icon to indicate that cookies/trackers are being blocked by continuously refreshing the page
8080
8181
Remember to open the passed in page beforehand, this waits for the page to load.
8282

tests/downloads/test_download_pdf_from_context_menu.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from platform import system
12
from time import sleep
23

34
import pytest
@@ -24,6 +25,10 @@ def delete_files_regex_string():
2425
PDF_TELEMETRY_DATA = ["downloads", "added", "fileExtension", "pdf"]
2526

2627

28+
@pytest.mark.skipif(
29+
system().lower().startswith("darwin") or system().lower().startswith("linux"),
30+
reason="bug 1994061",
31+
)
2732
@pytest.mark.headed
2833
def test_download_pdf_from_context_menu(
2934
driver: Firefox,

tests/preferences/test_clear_cookie_data.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from platform import system
2+
13
import pytest
24
from selenium.webdriver import Firefox
35
from selenium.webdriver.support.ui import WebDriverWait
@@ -24,7 +26,7 @@ def _dialog_options_present(about_prefs: AboutPrefs) -> bool:
2426
return False
2527

2628

27-
def open_clear_cookies_data_dialog(
29+
def _open_clear_cookies_data_dialog(
2830
about_prefs: AboutPrefs, ba: BrowserActions, wait: WebDriverWait
2931
):
3032
"""
@@ -53,6 +55,10 @@ def open_clear_cookies_data_dialog(
5355

5456

5557
# @pytest.mark.skipif(WIN_GHA, reason="Test unstable in Windows GA, tracked in 1990570")
58+
@pytest.mark.skipif(
59+
system().lower().startswith("darwin") or system().lower().startswith("linux"),
60+
reason="bug 1994055",
61+
)
5662
def test_clear_cookie_data(driver: Firefox):
5763
"""
5864
C143627: Cookies and site data can be cleared via the "Clear Data" panel
@@ -65,7 +71,7 @@ def test_clear_cookie_data(driver: Firefox):
6571
driver.get(WEBSITE_ADDRESS)
6672

6773
# Open dialog and read current value (must be > 0)
68-
cookie_value = open_clear_cookies_data_dialog(about_prefs, ba, wait)
74+
cookie_value = _open_clear_cookies_data_dialog(about_prefs, ba, wait)
6975
assert cookie_value > 0, f"Expected cookie/site data > 0, got {cookie_value}"
7076

7177
# Clear cookies and site data: open dialog again, wait for iframe, click clear
@@ -77,7 +83,7 @@ def test_clear_cookie_data(driver: Firefox):
7783
ba.switch_to_content_context()
7884

7985
# Wait until the dialog reports 0 (reopen/poll via helper)
80-
wait.until(lambda _: open_clear_cookies_data_dialog(about_prefs, ba, wait) == 0)
86+
wait.until(lambda _: _open_clear_cookies_data_dialog(about_prefs, ba, wait) == 0)
8187

82-
final_value = open_clear_cookies_data_dialog(about_prefs, ba, wait)
88+
final_value = _open_clear_cookies_data_dialog(about_prefs, ba, wait)
8389
assert final_value == 0, f"Expected 0 after clearing, got {final_value}"

tests/preferences/test_manage_cookie_data.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from platform import system
12
from time import sleep
23

34
import pytest
@@ -16,6 +17,10 @@ def test_case():
1617
COOKIE_SITE = "google.com"
1718

1819

20+
@pytest.mark.skipif(
21+
system().lower().startswith("darwin") or system().lower().startswith("linux"),
22+
reason="bug 1994056",
23+
)
1924
@pytest.mark.headed
2025
@pytest.mark.noxvfb
2126
def test_manage_cookie_data(driver: Firefox):

tests/security_and_privacy/test_third_party_content_blocked_private_browsing.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from platform import system
2+
13
import pytest
24
from selenium.webdriver import Firefox
35

@@ -10,14 +12,12 @@ def test_case():
1012
return "446323"
1113

1214

13-
ALLOWED_TRACKING_URLS = set(
14-
[
15-
"https://content-track-digest256.dummytracker.org",
16-
"https://ads-track-digest256.dummytracker.org",
17-
"https://social-track-digest256.dummytracker.org",
18-
"https://analytics-track-digest256.dummytracker.org",
19-
]
20-
)
15+
ALLOWED_TRACKING_URLS = {
16+
"https://content-track-digest256.dummytracker.org",
17+
"https://ads-track-digest256.dummytracker.org",
18+
"https://social-track-digest256.dummytracker.org",
19+
"https://analytics-track-digest256.dummytracker.org",
20+
}
2121
BLOCKED_TRACKER_URL = "https://content-track-digest256.dummytracker.org"
2222

2323
FIRST_TRACKER_WEBSITE = "https://senglehardt.com/test/trackingprotection/test_pages/tracking_protection.html"
@@ -103,6 +103,10 @@ def test_third_party_content_blocked_private_browsing_allowed_tracking(driver: F
103103
assert item.get_attribute("value") in ALLOWED_TRACKING_URLS
104104

105105

106+
@pytest.mark.skipif(
107+
system().lower().startswith("darwin") or system().lower().startswith("linux"),
108+
reason="bug 1994060",
109+
)
106110
def test_third_party_content_private_browsing_tracking_statuses(driver: Firefox):
107111
"""
108112
C446323.3: Ensure that the statuses of some third party content are loaded properly

0 commit comments

Comments
 (0)