[windmill tests] use extra timeouts, else we get failure simplu because we didn't wait enough
--- 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')