authelia/test/helpers/WaitRedirected.ts
2019-03-03 11:39:40 +01:00

5 lines
223 B
TypeScript

import SeleniumWebdriver, { WebDriver } from "selenium-webdriver";
export default async function(driver: WebDriver, url: string, timeout: number = 5000) {
await driver.wait(SeleniumWebdriver.until.urlIs(url), timeout);
}