authelia/test/features/step_definitions/access-control.ts

17 lines
407 B
TypeScript
Raw Normal View History

2018-03-29 05:04:59 +07:00
import {Then} from "cucumber";
Then("I have access to {string}", function(url: string) {
const that = this;
return this.driver.get(url)
.then(function () {
return that.waitUntilUrlContains(url);
});
});
Then("I have no access to {string}", function(url: string) {
const that = this;
return this.driver.get(url)
.then(function () {
return that.getErrorPage(403);
});
});