tests: use larger timeouts in windmill tests stable
authorJulien Jehannet <julien.jehannet@logilab.fr>
Tue, 27 Jul 2010 19:40:57 +0200
branchstable
changeset 6034 5e8076eb8ec7
parent 6031 4b721e739f53
child 6035 f8c7aa251782
tests: use larger timeouts in windmill tests
web/test/windmill/test_connexion.py
--- a/web/test/windmill/test_connexion.py	Wed Jul 28 16:27:57 2010 +0200
+++ b/web/test/windmill/test_connexion.py	Tue Jul 27 19:40:57 2010 +0200
@@ -9,16 +9,21 @@
     client = WindmillTestClient(__name__)
 
     client.open(url=u'/')
+    client.waits.forPageLoad(timeout=u'20000')
     client.asserts.assertJS(js=u"$('#loginForm').is(':visible')")
     client.type(text=LOGIN, id=u'__login')
     client.type(text=PASSWORD, id=u'__password')
+
     client.execJS(js=u"$('#loginForm').submit()")
     client.waits.forPageLoad(timeout=u'20000')
     client.asserts.assertJS(js=u'$(\'.message\').text() == "welcome %s !"' % LOGIN)
     client.open(url=u'/logout')
+    client.waits.forPageLoad(timeout=u'20000')
     client.open(url=u'/')
+    client.waits.forPageLoad(timeout=u'20000')
     client.asserts.assertJS(js=u"$('#loginForm').is(':visible')")
 
+
 def test_wrong_connect():
     client = WindmillTestClient(__name__)
 
@@ -32,4 +37,5 @@
     client.waits.forPageLoad(timeout=u'20000')
     client.asserts.assertTextIn(validator=u'authentication failure', id=u'loginBox')
     client.open(url=u'/')
+    client.waits.forPageLoad(timeout=u'20000')
     client.asserts.assertJS(js=u"$('#loginForm').is(':visible')")