From 1af235c4f1ad5439c01b97ccf30345d0c6d9eff0 Mon Sep 17 00:00:00 2001 From: Stan Silvert Date: Wed, 6 Aug 2025 08:41:16 -0400 Subject: [PATCH] Wait for key generation to finish. (#41684) Fixes #41683 Signed-off-by: Stan Silvert --- js/apps/admin-ui/test/clients/saml.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/apps/admin-ui/test/clients/saml.ts b/js/apps/admin-ui/test/clients/saml.ts index 0a220b8fbf9..14aedfaee8a 100644 --- a/js/apps/admin-ui/test/clients/saml.ts +++ b/js/apps/admin-ui/test/clients/saml.ts @@ -79,7 +79,12 @@ export async function clickOffEncryptionAssertions(page: Page) { } export async function clickGenerate(page: Page) { + const responsePromise = page.waitForResponse( + (res) => res.url().includes("/generate") && res.status() === 200, + { timeout: 10000 }, + ); await page.getByTestId("generate").click(); + await responsePromise; } export async function assertNameIdFormatDropdown(page: Page) {