Merge branch 'main' into application-wizard-2-with-api-and-tests

* main:
  web: add webdriverIO testing layer (#6959)
This commit is contained in:
Ken Sternberg 2023-10-02 09:33:25 -07:00
commit 1f2725f756
3 changed files with 7 additions and 4 deletions

View file

@ -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;

View file

@ -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.");
}); });
}); });

View file

@ -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
}; };