Skip to content

Commit

Permalink
test: Close OS selector before closing Create VM dialog
Browse files Browse the repository at this point in the history
Otherwise the list obscures the dialog's action buttons, so they are not
clickable (only with `ph_mouse()` which circumvents the browser).
  • Loading branch information
martinpitt committed Aug 22, 2024
1 parent 32f7204 commit 41760f3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/check-machines-create
Original file line number Diff line number Diff line change
Expand Up @@ -1193,6 +1193,9 @@ vnc_password= "{vnc_passwd}"
# Check only RHEL >= 8 is shown
b.wait_visible(f"#os-select li button:contains('{TestMachinesCreate.TestCreateConfig.RHEL_8_1}')")
b.wait_not_present(f"#os-select li button:contains('{TestMachinesCreate.TestCreateConfig.RHEL_7_1}')")
# make the select list go away to not obscure other elements
b.click("#os-select-group .pf-v5-c-select__toggle-button")
b.wait_not_present("#os-select li")

return self

Expand All @@ -1205,6 +1208,9 @@ vnc_password= "{vnc_passwd}"
next_os = b.text(f"#os-select-group li:contains({sorted_list[0]}) + li")
# The next neighbour should contain the second OS from the sorted list
self.assertEqual(next_os, sorted_list[1])
# make the select list go away to not obscure other elements
b.click("#os-select-group .pf-v5-c-select__toggle-button")
b.wait_not_present("#os-select li")
return self

def checkPXENotAvailableSession(self):
Expand Down

0 comments on commit 41760f3

Please sign in to comment.