--- 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')")