[windmill tests] use extra timeouts, else we get failure simplu because we didn't wait enough stable
authorJulien Jehannet <julien.jehannet@logilab.fr>
Fri, 05 Nov 2010 16:55:13 +0100
branchstable
changeset 6695 b714521ac66d
parent 6694 d9eac4fd57dc
child 6696 160ca95eb4cc
[windmill tests] use extra timeouts, else we get failure simplu because we didn't wait enough
web/test/windmill/test_connexion.py
web/test/windmill/test_creation.py
--- a/web/test/windmill/test_connexion.py	Fri Nov 05 18:51:22 2010 +0100
+++ b/web/test/windmill/test_connexion.py	Fri Nov 05 16:55:13 2010 +0100
@@ -4,7 +4,6 @@
 # Generated by the windmill services transformer
 from windmill.authoring import WindmillTestClient
 
-
 def test_connect():
     client = WindmillTestClient(__name__)
 
@@ -16,6 +15,7 @@
 
     client.execJS(js=u"$('#loginForm').submit()")
     client.waits.forPageLoad(timeout=u'20000')
+    client.waits.sleep(milliseconds=u'5000')
     client.asserts.assertJS(js=u'$(\'.message\').text() == "welcome %s !"' % LOGIN)
     client.open(url=u'/logout')
     client.waits.forPageLoad(timeout=u'20000')
--- a/web/test/windmill/test_creation.py	Fri Nov 05 18:51:22 2010 +0100
+++ b/web/test/windmill/test_creation.py	Fri Nov 05 16:55:13 2010 +0100
@@ -34,6 +34,7 @@
     client.waits.forPageLoad(timeout=u'20000')
     client.click(value=u'button_ok')
     client.waits.forPageLoad(timeout=u'20000')
+    client.waits.sleep(milliseconds=u'5000')
     client.asserts.assertJS(js=u'$(\'.message\').text() == "entity created"')
     client.open(url=u'/?rql=Any U WHERE U is CWUser, U login "myuser"')
     client.waits.forPageLoad(timeout=u'20000')