mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
Stabilize integration tests by increasing timeouts
This commit is contained in:
parent
84c13c71e2
commit
a39605f9d7
|
@ -3,6 +3,10 @@ import fs = require("fs");
|
||||||
import BluebirdPromise = require("bluebird");
|
import BluebirdPromise = require("bluebird");
|
||||||
import ChildProcess = require("child_process");
|
import ChildProcess = require("child_process");
|
||||||
|
|
||||||
|
Cucumber.defineSupportCode(function({ setDefaultTimeout }) {
|
||||||
|
setDefaultTimeout(20 * 1000);
|
||||||
|
});
|
||||||
|
|
||||||
Cucumber.defineSupportCode(function({ After, Before }) {
|
Cucumber.defineSupportCode(function({ After, Before }) {
|
||||||
const exec = BluebirdPromise.promisify(ChildProcess.exec);
|
const exec = BluebirdPromise.promisify(ChildProcess.exec);
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,6 @@ Cucumber.defineSupportCode(function ({ Given, When, Then }) {
|
||||||
});
|
});
|
||||||
|
|
||||||
Then("I'm redirected to {stringInDoubleQuotes}", function (link: string) {
|
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);
|
||||||
});
|
});
|
||||||
});
|
});
|
Loading…
Reference in New Issue
Block a user