We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ea7c65 commit ff8961fCopy full SHA for ff8961f
1 file changed
components/dash-core-components/tests/integration/dropdown/test_clearable_false.py
@@ -190,8 +190,17 @@ def update_value(val):
190
191
# Attempt to deselect all items. Everything should deselect until we get to
192
# the last item which cannot be cleared.
193
- selected = dash_duo.find_elements(".dash-dropdown-options input[checked]")
194
- [el.click() for el in selected]
+ # Click MTL option container
+ mtl_option = dash_duo.find_element(
195
+ '.dash-dropdown-option:has(input[value="MTL"])'
196
+ )
197
+ mtl_option.click()
198
+
199
+ # Click SF option container
200
+ sf_option = dash_duo.find_element(
201
+ '.dash-dropdown-option:has(input[value="SF"])'
202
203
+ sf_option.click()
204
205
assert dash_duo.find_element("#dropdown-value").text == "SF"
206
0 commit comments