8000 Retry entering the mapper name if the text did not end up in the field by ahus1 · Pull Request #54813 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion js/apps/admin-ui/test/identity-providers/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,12 @@ export async function addMapper(
"#identityProviderMapper",
page.getByTestId(`${mapperType}-idp-mapper`),
);
await page.getByTestId("name").fill(mapperName);
const name = page.getByTestId("name");
// Fields that load their options asynchronously take the focus when they appear, which can swallow the text.
await expect(async () => {
await name.fill(mapperName);
await expect(name).toHaveValue(mapperName, { timeout: 1_000 });
}).toPass();
}

export async function clickSaveMapper(page: Page) {
Expand Down
Loading
0