Stabilize integration tests by increasing timeouts

Clement Michaud 2017-09-08 23:18:20 +02:00
parent a538ca3319
commit 24e73d1730
2 changed files with 5 additions and 1 deletions

View File

@ -3,6 +3,10 @@ import fs = require("fs");
import BluebirdPromise = require("bluebird");
import ChildProcess = require("child_process");
Cucumber.defineSupportCode(function({ setDefaultTimeout }) {
setDefaultTimeout(20 * 1000);
});
Cucumber.defineSupportCode(function({ After, Before }) {
const exec = BluebirdPromise.promisify(ChildProcess.exec);

View File

@ -12,6 +12,6 @@ Cucumber.defineSupportCode(function ({ Given, When, Then }) {
});
Then("I'm redirected to {stringInDoubleQuotes}", function (link: string) {
return this.driver.wait(seleniumWebdriver.until.urlContains(link), 5000);
return this.driver.wait(seleniumWebdriver.until.urlContains(link), 15000);
});
});