--- 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 () {