authelia/test/helpers/wait-redirected.ts

5 lines
203 B
TypeScript
Raw Normal View History

2018-08-10 03:24:02 +07:00
import SeleniumWebdriver = require("selenium-webdriver");
export default function(driver: any, url: string, timeout: number = 5000) {
return driver.wait(SeleniumWebdriver.until.urlIs(url), timeout);
}