Skip to content

Commit

Permalink
test: Check that dropdown options are enabled
Browse files Browse the repository at this point in the history
Just setting the value of the <select> element will always succeed,
even when the option itself is disabled.
  • Loading branch information
mvollmer committed Aug 11, 2023
1 parent e7b5545 commit ecd58a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/common/storagelib.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ def dialog_set_val(self, field, val):
self.browser.set_val(sel + " .size-unit select", "1000000")
self.browser.set_input_text(sel + " .size-text input", str(val))
elif ftype == "select":
self.browser._wait_present(sel + f" select option[value={val}]:not([disabled])")
self.browser.set_val(sel + " select", val)
elif ftype == "select-radio":
self.browser.click(sel + f" input[data-data='{val}']")
Expand Down

0 comments on commit ecd58a3

Please sign in to comment.