authentik/web/tests/pageobjects/forms/oauth.form.ts

20 lines
470 B
TypeScript

import { $ } from "@wdio/globals";
import Page from "../page.js";
export class OauthForm extends Page {
async setAuthorizationFlow(selector: string) {
await this.searchSelect(
'ak-flow-search[name="authorizationFlow"]',
"authorizationFlow",
`${selector}`,
);
}
async providerName() {
return await $('ak-form-element-horizontal[name="name"]').$("input");
}
}
export default new OauthForm();