uitests: Make test_mediachange more resilient

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2020-08-21 14:14:27 -04:00
parent 7342d9a11b
commit 27d1b4d4bd
1 changed files with 2 additions and 1 deletions

View File

@ -38,7 +38,8 @@ class MediaChange(uiutils.UITestCase):
entry.text = "/dev/fdb"
appl.click()
uiutils.check_in_loop(lambda: not appl.sensitive)
self.assertEqual(entry.text, "Floppy_install_label (/dev/fdb)")
uiutils.check_in_loop(lambda:
entry.text == "Floppy_install_label (/dev/fdb)")
# Specify manual path
path = "/tmp/aaaaaaaaaaaaaaaaaaaaaaa.img"