Skip to content

Commit c6a9203

Browse files
chadcrumclaude
andcommitted
fix(e2e): increase Keycloak login timeout to 30 seconds
The default 10-second actionTimeout was being exceeded when the Keycloak popup was slow to render, causing orchestrator RBAC tests to fail during authentication setup. Add explicit waitFor with 30-second timeout before interacting with the Keycloak login form to handle slow responses. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent a86b574 commit c6a9203

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

e2e-tests/playwright/utils/common.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ export class Common {
8484
await new Promise<void>((resolve) => {
8585
this.page.once("popup", async (popup) => {
8686
await popup.waitForLoadState();
87+
// Wait for login button to be visible with longer timeout for slow Keycloak responses
88+
await popup
89+
.locator("#kc-login")
90+
.waitFor({ state: "visible", timeout: 30000 });
8791
await popup.locator("#username").fill(userid);
8892
await popup.locator("#password").fill(password);
8993
await popup.locator("#kc-login").click();

0 commit comments

Comments
 (0)