uitests: Drop redundant sleeps
All these cases have sleep+backoff built into the dogtail logic, so we don't need to manually sleep
This commit is contained in:
parent
8030e0a35c
commit
4fbffc4086
|
@ -1,5 +1,3 @@
|
|||
import time
|
||||
|
||||
from tests.uitests import utils as uiutils
|
||||
|
||||
|
||||
|
@ -14,13 +12,11 @@ class VMMCLI(uiutils.UITestCase):
|
|||
|
||||
def testShowNewVM(self):
|
||||
self.app.open(extra_opts=["--show-domain-creator"])
|
||||
time.sleep(.5)
|
||||
|
||||
uiutils.find_pattern(self.app.root, "New VM", "frame")
|
||||
|
||||
def testShowHost(self):
|
||||
self.app.open(extra_opts=["--show-host-summary"])
|
||||
time.sleep(.5)
|
||||
|
||||
win = uiutils.find_pattern(self.app.root,
|
||||
"test testdriver.xml Connection Details", "frame")
|
||||
|
@ -30,7 +26,6 @@ class VMMCLI(uiutils.UITestCase):
|
|||
|
||||
def testShowDetails(self):
|
||||
self.app.open(extra_opts=["--show-domain-editor", "test-clone-simple"])
|
||||
time.sleep(.5)
|
||||
|
||||
win = uiutils.find_fuzzy(self.app.root, "test-clone-simple on", "frame")
|
||||
self.assertFalse(
|
||||
|
@ -41,7 +36,6 @@ class VMMCLI(uiutils.UITestCase):
|
|||
def testShowPerformance(self):
|
||||
self.app.open(extra_opts=["--show-domain-performance",
|
||||
"test-clone-simple"])
|
||||
time.sleep(.5)
|
||||
|
||||
win = uiutils.find_fuzzy(self.app.root, "test-clone-simple on", "frame")
|
||||
self.assertFalse(
|
||||
|
@ -51,7 +45,6 @@ class VMMCLI(uiutils.UITestCase):
|
|||
|
||||
def testShowConsole(self):
|
||||
self.app.open(extra_opts=["--show-domain-console", "test-clone-simple"])
|
||||
time.sleep(.5)
|
||||
|
||||
win = uiutils.find_fuzzy(self.app.root, "test-clone-simple on", "frame")
|
||||
self.assertTrue(
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import time
|
||||
|
||||
from tests.uitests import utils as uiutils
|
||||
|
||||
|
||||
|
@ -32,7 +30,6 @@ class CloneVM(uiutils.UITestCase):
|
|||
"""
|
||||
win = self._open_window("test-clone")
|
||||
uiutils.find_pattern(win, "Clone", "push button").click()
|
||||
time.sleep(1)
|
||||
|
||||
# Verify the new VM popped up
|
||||
uiutils.find_pattern(
|
||||
|
@ -44,7 +41,6 @@ class CloneVM(uiutils.UITestCase):
|
|||
"""
|
||||
win = self._open_window("test-clone-simple")
|
||||
uiutils.find_pattern(win, "Clone", "push button").click()
|
||||
time.sleep(1)
|
||||
|
||||
# Verify the new VM popped up
|
||||
uiutils.find_pattern(
|
||||
|
@ -56,7 +52,6 @@ class CloneVM(uiutils.UITestCase):
|
|||
"""
|
||||
win = self._open_window("test-clone-full")
|
||||
uiutils.find_pattern(win, "Clone", "push button").click()
|
||||
time.sleep(1)
|
||||
|
||||
# Verify error dialog popped up
|
||||
uiutils.find_pattern(
|
||||
|
@ -86,7 +81,6 @@ class CloneVM(uiutils.UITestCase):
|
|||
uiutils.find_pattern(stgwin, "OK", "push button").click()
|
||||
|
||||
uiutils.find_pattern(win, "Clone", "push button").click()
|
||||
time.sleep(1)
|
||||
|
||||
# Verify the new VM popped up
|
||||
uiutils.find_pattern(
|
||||
|
|
|
@ -92,7 +92,6 @@ class DogtailApp(object):
|
|||
"--test-first-run", "--no-fork", "--connect", self.uri] +
|
||||
extra_opts,
|
||||
stdout=stdout, stderr=stderr)
|
||||
time.sleep(1)
|
||||
|
||||
self._root = dogtail.tree.root.application("virt-manager")
|
||||
|
||||
|
|
Loading…
Reference in New Issue