# HG changeset patch # User Julien Jehannet # Date 1288972513 -3600 # Node ID b714521ac66d6bcf37e14a65f02e469919a381c4 # Parent d9eac4fd57dc08ee30866ff698c361ab57e7d123 [windmill tests] use extra timeouts, else we get failure simplu because we didn't wait enough diff -r d9eac4fd57dc -r b714521ac66d web/test/windmill/test_connexion.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') diff -r d9eac4fd57dc -r b714521ac66d web/test/windmill/test_creation.py --- 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')