Compare commits

...

3 Commits

Author SHA1 Message Date
Teffen Ellis
765d7401b0 web: Fix enterprise only test path. 2025-09-30 22:26:12 +02:00
Teffen Ellis
2215eb7df7 web: Add default label. 2025-09-30 22:26:12 +02:00
Teffen Ellis
9869d92104 web: Add strict label selection. 2025-09-30 22:26:11 +02:00
3 changed files with 7 additions and 3 deletions

View File

@@ -27,6 +27,7 @@ export class PointerFixture extends PageFixture {
}
const options = {
exact: typeof name === "string",
...optionsOrRole,
name,
};

View File

@@ -13,6 +13,7 @@ import {
CryptoCertificatekeypairsListRequest,
} from "@goauthentik/api";
import { msg } from "@lit/localize";
import { html } from "lit";
import { customElement, property, query } from "lit/decorators.js";
@@ -43,10 +44,10 @@ export class AkCryptoCertificateSearch extends CustomListenerElement(AKElement)
public name?: string | null;
@property({ type: String })
public label: string | null = null;
public label: string | null = msg("Certificate");
@property({ type: String })
public placeholder: string | null = null;
public placeholder: string | null = msg("Select a certificate...");
/**
* Set to `true` to allow certificates without private key to show up. When set to `false`,

View File

@@ -200,7 +200,7 @@ test.describe("Provider Wizard", () => {
test("Complete RADIUS Provider", async ({ page, pointer, form }, testInfo) => {
const providerName = providerNames.get(testInfo.testId)!;
const { fill, selectSearchValue } = form;
const { fill, selectSearchValue, setFormGroup } = form;
const { click } = pointer;
await series(
@@ -208,6 +208,8 @@ test.describe("Provider Wizard", () => {
[click, "Next"],
[fill, "Provider name", providerName],
[selectSearchValue, "Authentication flow", /default-authentication-flow/],
[setFormGroup, "Protocol settings", true],
[selectSearchValue, "Certificate", /------/],
[click, "Finish", "button", page.getByRole("dialog", { name: "New Provider" })],
);
});