Wait for key generation to finish. (#41684)

Fixes #41683

Signed-off-by: Stan Silvert <ssilvert@redhat.com>
This commit is contained in:
Stan Silvert 2025-08-06 08:41:16 -04:00 committed by GitHub
parent 2d15033b47
commit 1af235c4f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {