mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
Fix randomness in integration tests.
This commit is contained in:
parent
7006035012
commit
546616173c
|
@ -1,8 +1,10 @@
|
|||
import { WebDriver } from "selenium-webdriver";
|
||||
import VerifyIsFirstFactorStage from "./assertions/VerifyIsFirstFactorStage";
|
||||
import VisitPage from "./VisitPage";
|
||||
import VerifyUrlContains from "./assertions/VerifyUrlContains";
|
||||
|
||||
export default async function(driver: WebDriver) {
|
||||
await VisitPage(driver, "https://login.example.com:8080/#/logout");
|
||||
await VerifyUrlContains(driver, "https://login.example.com:8080/#/");
|
||||
await VerifyIsFirstFactorStage(driver);
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
import { StartDriver, StopDriver } from "../context/WithDriver";
|
||||
import RegisterAndLoginTwoFactor from "../behaviors/RegisterAndLoginTwoFactor";
|
||||
import VerifyUrlIs from "../assertions/VerifyUrlIs";
|
||||
import Logout from "../Logout";
|
||||
|
||||
export default function (timeout: number = 5000) {
|
||||
return function() {
|
||||
|
@ -11,6 +12,7 @@ export default function (timeout: number = 5000) {
|
|||
});
|
||||
|
||||
after(async function() {
|
||||
await Logout(this.driver);
|
||||
await StopDriver(this.driver);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user