mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-28 01:58:08 +03:00
createvm: Help make UI tests more reliable
We check if the page moved forward in uitests by scraping the top label. Make sure we do that last when the page changes Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
b88e755a52
commit
ec90d1360d
@ -1404,7 +1404,6 @@ class vmmCreateVM(vmmGObjectUI):
|
||||
|
||||
self.widget("create-finish").grab_focus()
|
||||
|
||||
self._set_page_num_text(pagenum)
|
||||
self.widget("create-back").set_sensitive(pagenum != PAGE_NAME)
|
||||
self.widget("create-forward").set_visible(pagenum != PAGE_FINISH)
|
||||
self.widget("create-finish").set_visible(pagenum == PAGE_FINISH)
|
||||
@ -1415,6 +1414,8 @@ class vmmCreateVM(vmmGObjectUI):
|
||||
page = self.widget("create-pages").get_nth_page(nr)
|
||||
page.set_visible(nr == pagenum)
|
||||
|
||||
self._set_page_num_text(pagenum)
|
||||
|
||||
|
||||
############################
|
||||
# Page validation routines #
|
||||
|
Loading…
x
Reference in New Issue
Block a user