uitests: Fix with latest delete wizard

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2020-01-28 11:34:23 -05:00
parent 0e355b218a
commit 4f7e25e9fe

View File

@ -379,13 +379,13 @@ class Details(uiutils.UITestCase):
disklabel = "SCSI Disk 1"
tab = self._select_hw(win, disklabel, "disk-tab")
win.find("config-remove", "push button").click()
delete = self.app.root.find_fuzzy("Delete", "frame")
delete = self.app.root.find_fuzzy("Remove Disk", "frame")
delete.find_fuzzy("Delete", "button").click()
# Will be fixed eventually
# alert = self.app.root.find("vmm dialog", "alert")
# alert.find_fuzzy("Device could not be removed", "label")
# alert.find("OK", "push button").click()
alert = self.app.root.find("vmm dialog", "alert")
alert.find_fuzzy("Device could not be removed", "label")
alert.find("OK", "push button").click()
c = hwlist.find(disklabel, "table cell")
self._stop_vm(win)
@ -394,7 +394,7 @@ class Details(uiutils.UITestCase):
# Remove a device for offline VM
tab = self._select_hw(win, "SCSI CDROM 1", "disk-tab")
win.find("config-remove", "push button").click()
delete = self.app.root.find_fuzzy("Delete", "frame")
delete = self.app.root.find_fuzzy("Remove Disk", "frame")
delete.find_fuzzy("Delete", "button").click()
uiutils.check_in_loop(lambda: win.active)