File tree Expand file tree Collapse file tree 2 files changed +0
-27
lines changed Expand file tree Collapse file tree 2 files changed +0
-27
lines changed Original file line number Diff line number Diff line change @@ -54,13 +54,11 @@ def test_boards_dropdown(self):
54
54
55
55
assert boards_dropdown .first_selected_option .text == TEST_BOARD
56
56
57
- @pytest .mark .requires_extension
58
57
def test_ports_dropdown (self ):
59
58
"""Tests that the ports dropdown exists."""
60
59
ports = self .get_element (By .ID , "cb_cf_ports" )
61
60
assert ports .text == 'No ports detected'
62
61
63
- @pytest .mark .requires_extension
64
62
def test_run_with_no_port (self ):
65
63
"""Makes sure that there is an error when we attempt to run with no
66
64
port selected."""
@@ -72,13 +70,11 @@ def test_run_with_no_port(self):
72
70
)
73
71
)
74
72
75
- @pytest .mark .requires_extension
76
73
def test_speeds_dropdown (self ):
77
74
"""Tests that the speeds dropdown exists."""
78
75
self .get_element (By .ID , "serial_monitor_toggle" ).click ()
79
76
self .get_element (By .ID , "cb_cf_baud_rates" )
80
77
81
- @pytest .mark .requires_extension
82
78
def test_serial_monitor_disables_fields (self ):
83
79
"""Tests that opening the serial monitor disables the port and baudrate
84
80
fields."""
Original file line number Diff line number Diff line change @@ -149,26 +149,3 @@ def test_some_feature():
149
149
required_url = request .node .get_marker ('requires_url' ).args [0 ]
150
150
if required_url .rstrip ('/' ) != testing_url .rstrip ('/' ):
151
151
pytest .skip ('skipped test that requires --url=%s' % required_url )
152
-
153
-
154
- @pytest .fixture (autouse = True )
155
- def requires_extension (request , webdriver ):
156
- """Mark that a test requires the codebender extension.
157
- Ideally, this marker would not be necessary. However, it is used so that we
158
- skip tests when running under chrome that require the extension (for now).
159
- This is due to the fact that the chrome driver leaves open the
160
- "confirm extension" dialogue without actually installing it.
161
-
162
- This functionality should be invoked as a pytest marker, e.g.:
163
-
164
- ```
165
- @pytest.mark.requires_extension
166
- def test_some_feature():
167
- ...
168
- ```
169
- """
170
- if request .node .get_marker ('requires_extension' ):
171
- if webdriver .desired_capabilities ["browserName" ] == "chrome" :
172
- pytest .skip ("skipped test that requires codebender extension. "
173
- "The current webdriver is Chrome, and the ChromeDriver "
174
- "does not properly install extensions." )
You can’t perform that action at this time.
0 commit comments