6c7e30dc7d
* web/wdio-2: web/test: changed the name of one test to reflect it's 'good' status web/adding tests: added comments and cleaned up some administrative features. web/add webdriverIO testing layer
23 lines
981 B
TypeScript
23 lines
981 B
TypeScript
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}`);
|
|
|
|
});
|