Merge branch 'main' into application-wizard-2-with-api-and-tests
* main: web: add webdriverIO testing layer (#6959)
This commit is contained in:
commit
1f2725f756
|
@ -1,5 +1,5 @@
|
||||||
import { browser } from "@wdio/globals";
|
|
||||||
import Page from "../pageobjects/page.js";
|
import Page from "../pageobjects/page.js";
|
||||||
|
import { browser } from "@wdio/globals";
|
||||||
|
|
||||||
const CLICK_TIME_DELAY = 250;
|
const CLICK_TIME_DELAY = 250;
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ describe("Log into authentik", () => {
|
||||||
await LoginPage.username(BAD_USERNAME);
|
await LoginPage.username(BAD_USERNAME);
|
||||||
const failure = await LoginPage.authFailure;
|
const failure = await LoginPage.authFailure;
|
||||||
expect(failure).toHaveText("Failed to authenticate.");
|
expect(failure).toHaveText("Failed to authenticate.");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should fail on a bad password", async () => {
|
it("should fail on a bad password", async () => {
|
||||||
await LoginPage.open();
|
await LoginPage.open();
|
||||||
|
@ -17,5 +17,5 @@ describe("Log into authentik", () => {
|
||||||
await LoginPage.password(BAD_PASSWORD);
|
await LoginPage.password(BAD_PASSWORD);
|
||||||
const failure = await LoginPage.authFailure;
|
const failure = await LoginPage.authFailure;
|
||||||
expect(failure).toHaveText("Failed to authenticate.");
|
expect(failure).toHaveText("Failed to authenticate.");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -157,6 +157,7 @@ export const config: Options.Testrunner = {
|
||||||
ui: "bdd",
|
ui: "bdd",
|
||||||
timeout: 60000,
|
timeout: 60000,
|
||||||
},
|
},
|
||||||
|
<<<<<<< HEAD
|
||||||
//
|
//
|
||||||
// =====
|
// =====
|
||||||
// Hooks
|
// Hooks
|
||||||
|
@ -303,4 +304,6 @@ export const config: Options.Testrunner = {
|
||||||
*/
|
*/
|
||||||
// onReload: function(oldSessionId, newSessionId) {
|
// onReload: function(oldSessionId, newSessionId) {
|
||||||
// }
|
// }
|
||||||
|
=======
|
||||||
|
>>>>>>> main
|
||||||
};
|
};
|
||||||
|
|
Reference in a new issue