Skip to content

Commit c5fe183

Browse files
author
Matt Gaunt
committed
Offer retries in tests and update selenium-assistant
1 parent 3f8697b commit c5fe183

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"mocha": "^2.4.5",
5151
"portfinder": "^1.0.2",
5252
"request": "^2.69.0",
53-
"selenium-assistant": "0.1.5",
53+
"selenium-assistant": "0.2.0",
5454
"selenium-webdriver": "~2.53.2",
5555
"semver": "^5.1.0",
5656
"temp": "^0.8.3",

test/testSelenium.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,9 @@
194194
})
195195
.then(function() {
196196
var expectedTitle = options.payload ? options.payload : 'no payload';
197-
return globalDriver.wait(webdriver.until.titleIs(expectedTitle, 60000));
197+
return globalDriver.wait(function() {
198+
return webdriver.until.titleIs(expectedTitle, 60000);
199+
});
198200
})
199201
.then(function() {
200202
resolve();
@@ -216,6 +218,7 @@
216218
}
217219

218220
suite('Selenium ' + browser.getPrettyName(), function() {
221+
this.retries(3);
219222

220223
setup(function() {
221224
globalServer = null;

0 commit comments

Comments
 (0)