diff -r f8733ce4ed05 -r 44634d19db32 test-suite/tests/000_test_helpers.js --- a/test-suite/tests/000_test_helpers.js Wed Apr 09 16:57:53 2014 +0200 +++ b/test-suite/tests/000_test_helpers.js Wed Apr 09 18:38:55 2014 +0200 @@ -111,10 +111,11 @@ /** * Click somewhere * s : selector of the item to click on + * v : is the element visible or not */ -function test_click (s) { +function test_click (s, v) { test ('click '+s, dsl(function () { - elt (s).click (); + elt (s, v).click (); })); } @@ -130,6 +131,15 @@ } /** + * Reload a page + */ +function test_reload () { + test ('reload current page', dsl(function () { + browser.reload (); + })); +} + +/** * Fails a test */ function test_fail () {