Skip to content

Commit ff8961f

Browse files
committed
fixed test
1 parent 7ea7c65 commit ff8961f

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

components/dash-core-components/tests/integration/dropdown/test_clearable_false.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,17 @@ def update_value(val):
190190

191191
# Attempt to deselect all items. Everything should deselect until we get to
192192
# 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]
193+
# Click MTL option container
194+
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()
195204

196205
assert dash_duo.find_element("#dropdown-value").text == "SF"
197206

0 commit comments

Comments
 (0)