This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
authentik/tests/wdio/test/specs/new-wizard-ldap-application.ts

23 lines
981 B
TypeScript
Raw Normal View History

import { login } from "../utils/login.js";
import { randomId } from "../utils/index.js";
import ApplicationsListPage from "../pageobjects/applications-list.page.js";
import ApplicationsWizardView from "../pageobjects/applications-wizard.page.js";
import ApplicationForm from "../pageobjects/application-form.view.js";
import { expect } from "@wdio/globals";
describe("Log into Authentik", () => {
it("should login with valid credentials and reach the UserLibrary", () => {
const newPrefix = randomId();
await login();
await ApplicationsListPage.open();
expect(await ApplicationsListPage.pageHeader).toHaveText("Applications");
await ApplicationsListPage.startWizardButton.click();
await ApplicationsWizardView.wizardTitle.toBeVisible();
expect(await ApplicationsWizardView.wizardTitle).toHaveText("Create Application");
await ApplicationForm.name.setValue(`New LDAP Application - ${newPrefix}`);
});