mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
17 lines
407 B
TypeScript
17 lines
407 B
TypeScript
|
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);
|
||
|
});
|
||
|
});
|