mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
tests: uitests: Make NewVMManual more robust
There's a timing issue with changing pages Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
bea5e56c26
commit
c0c69b1708
@ -98,11 +98,13 @@ class NewVM(uiutils.UITestCase):
|
|||||||
uiutils.check_in_loop(lambda: osentry.text == "Generic default")
|
uiutils.check_in_loop(lambda: osentry.text == "Generic default")
|
||||||
|
|
||||||
# Verify back+forward still keeps Generic selected
|
# Verify back+forward still keeps Generic selected
|
||||||
|
self.sleep(.5)
|
||||||
newvm.find_fuzzy("Back", "button").click()
|
newvm.find_fuzzy("Back", "button").click()
|
||||||
self.sleep(.2)
|
self.sleep(.5)
|
||||||
self.forward(newvm)
|
self.forward(newvm)
|
||||||
self.sleep(.2)
|
self.sleep(.5)
|
||||||
uiutils.check_in_loop(lambda: "Generic" in osentry.text)
|
uiutils.check_in_loop(lambda: "Generic" in osentry.text)
|
||||||
|
uiutils.check_in_loop(lambda: osentry.onscreen)
|
||||||
|
|
||||||
# The sleeps shouldn't be required, but this test continues to be
|
# The sleeps shouldn't be required, but this test continues to be
|
||||||
# flakey, so this is an attempt to fix it.
|
# flakey, so this is an attempt to fix it.
|
||||||
|
Loading…
Reference in New Issue
Block a user