[test] windmill: add a timeout between JS assertion in test_creation use case
authorJulien Jehannet <julien.jehannet@logilab.fr>
Tue, 06 Jul 2010 11:45:11 +0200
changeset 5905 ed66f5a8d48a
parent 5904 6371b6760dc9
child 5907 5eba1248e12b
[test] windmill: add a timeout between JS assertion in test_creation use case
doc/book/en/tutorials/tools/windmill.rst
web/test/windmill/test_creation.py
--- a/doc/book/en/tutorials/tools/windmill.rst	Tue Jul 06 13:55:10 2010 +0200
+++ b/doc/book/en/tutorials/tools/windmill.rst	Tue Jul 06 11:45:11 2010 +0200
@@ -77,6 +77,16 @@
 
     windmill -m firebug loadtest=<test_file.py> <instance url>
 
+But use the internal windmill shell to explore available commands:
+
+    windmill -m firebug shell <instance url>
+
+.. sourcecode:: python
+
+    >>> load_test(<your test file>)
+    >>> run_test(<your test file>)
+
+
 
 Integrate Windmill tests into CubicWeb
 ======================================
--- a/web/test/windmill/test_creation.py	Tue Jul 06 13:55:10 2010 +0200
+++ b/web/test/windmill/test_creation.py	Tue Jul 06 11:45:11 2010 +0200
@@ -36,6 +36,7 @@
     client.waits.forPageLoad(timeout=u'20000')
     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')
     client.asserts.assertJS(js=u'$(\'#contentmain h1\').text() == "myuser"')
     client.waits.forPageLoad(timeout=u'8000')
     client.open(url=u'/cwuser/myuser?vid=sameetypelist')