From 41760f3702aa5fbb0db24f06f87560eea0db2d9d Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Thu, 22 Aug 2024 10:59:43 +0200 Subject: [PATCH] test: Close OS selector before closing Create VM dialog Otherwise the list obscures the dialog's action buttons, so they are not clickable (only with `ph_mouse()` which circumvents the browser). --- test/check-machines-create | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/check-machines-create b/test/check-machines-create index 5c0f95c83..4bfac6654 100755 --- a/test/check-machines-create +++ b/test/check-machines-create @@ -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 @@ -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):