2018-03-28 22:04:59 +00:00
|
|
|
import {When} from "cucumber";
|
2017-07-26 21:45:26 +00:00
|
|
|
import seleniumWebdriver = require("selenium-webdriver");
|
|
|
|
import Assert = require("assert");
|
|
|
|
import ChildProcess = require("child_process");
|
|
|
|
import BluebirdPromise = require("bluebird");
|
|
|
|
|
2018-03-28 22:04:59 +00:00
|
|
|
When(/^the application restarts$/, {timeout: 15 * 1000}, function () {
|
|
|
|
const exec = BluebirdPromise.promisify(ChildProcess.exec);
|
|
|
|
return exec("./scripts/example-commit/dc-example.sh restart authelia && sleep 1");
|
2017-07-26 21:45:26 +00:00
|
|
|
});
|