File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
tests/address_bar_and_search Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ markers = [
12
12
" ci: basic tests to run in ci" ,
13
13
" locale_de: tests run in DE locale versions" ,
14
14
" locale_fr: tests run in FR locale versions" ,
15
- " locale_gb: tests run in GB locale versions"
15
+ " locale_gb: tests run in GB locale versions" ,
16
+ " noxvfb: tests that should not run in xvfb sessions"
16
17
]
17
18
18
19
[tool .ruff ]
Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ markers = [
12
12
" ci: basic tests to run in ci" ,
13
13
" locale_de: tests run in DE locale versions" ,
14
14
" locale_fr: tests run in FR locale versions" ,
15
- " locale_gb: tests run in GB locale versions"
15
+ " locale_gb: tests run in GB locale versions" ,
16
+ " noxvfb: tests that should not run in xvfb sessions"
16
17
]
17
18
18
19
[tool .ruff ]
Original file line number Diff line number Diff line change 1
1
import pytest
2
+ import platform
2
3
from selenium .webdriver import Firefox
3
4
from selenium .webdriver .support import expected_conditions as EC
4
5
@@ -23,6 +24,7 @@ def test_case():
23
24
return "3029292"
24
25
25
26
27
+ @pytest .mark .skipif (platform .system ().lower ().startswith ("win" ), "Bug 1971323" )
26
28
@pytest .mark .noxvfb
27
29
def test_addon_suggestion_based_on_search_input (driver : Firefox ):
28
30
"""
@@ -34,10 +36,7 @@ def test_addon_suggestion_based_on_search_input(driver: Firefox):
34
36
for input_text , addon_slug in INPUT_TO_ADDON_NAME .items ():
35
37
nav .type_in_awesome_bar (input_text )
36
38
37
- if not nav .element_visible ("addon-suggestion" ):
38
- raise AssertionError (
39
- f"Addon suggestion not visible for input: '{ input_text } '"
40
- )
39
+
41
40
42
41
nav .select_element_in_nav ("addon-suggestion" )
43
42
expected_url = f"{ ADDONS_BASE_URL } { addon_slug } /"
You can’t perform that action at this time.
0 commit comments