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 { browser } from "@wdio/globals";
const CLICK_TIME_DELAY = 250;

View file

@ -8,8 +8,8 @@ describe("Log into authentik", () => {
await LoginPage.username(BAD_USERNAME);
const failure = await LoginPage.authFailure;
expect(failure).toHaveText("Failed to authenticate.");
});
});
it("should fail on a bad password", async () => {
await LoginPage.open();
await LoginPage.username(GOOD_USERNAME);
@ -17,5 +17,5 @@ describe("Log into authentik", () => {
await LoginPage.password(BAD_PASSWORD);
const failure = await LoginPage.authFailure;
expect(failure).toHaveText("Failed to authenticate.");
});
});
});

View file

@ -157,6 +157,7 @@ export const config: Options.Testrunner = {
ui: "bdd",
timeout: 60000,
},
<<<<<<< HEAD
//
// =====
// Hooks
@ -303,4 +304,6 @@ export const config: Options.Testrunner = {
*/
// onReload: function(oldSessionId, newSessionId) {
// }
=======
>>>>>>> main
};