From 4b00c8772e03b794f21bc1fd1142dee38add47ad Mon Sep 17 00:00:00 2001 From: Feny Mehta Date: Thu, 18 Jun 2026 14:58:06 +0530 Subject: [PATCH] fix: increase SSO login password field timeout to 60s - After clicking "Next" on the Red Hat SSO page, the server validates the username before rendering the password form. This server-side call can be intermittently slow, causing the default 30s Playwright timeout to be exceeded (~25% failure rate in ci-daily-prod). - Add an explicit WaitFor with 60s timeout on the password field locator, matching the timeout already used for page navigation. Co-authored-by: Cursor Signed-off-by: Feny Mehta --- testsupport/devsandbox-dashboard/login.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/testsupport/devsandbox-dashboard/login.go b/testsupport/devsandbox-dashboard/login.go index 72445bf6a..d7dc8e46e 100644 --- a/testsupport/devsandbox-dashboard/login.go +++ b/testsupport/devsandbox-dashboard/login.go @@ -72,6 +72,15 @@ func (lp *LoginPage) Login(t *testing.T, loginUsername, loginPw string) { if lp.Env == DevEnv || lp.Env == ProdEnv { err := lp.NextBtn.Click() require.NoError(t, err) + + // After "Next", the SSO server validates the username before rendering the + // password form. This server-side call can be slow under load, so wait with + // a longer timeout than the default 30s to avoid intermittent failures. + err = lp.LoginPwLoc.WaitFor(playwright.LocatorWaitForOptions{ + State: playwright.WaitForSelectorStateVisible, + Timeout: playwright.Float(60000), + }) + require.NoError(t, err) } err = lp.LoginPwLoc.Fill(loginPw)