Skip to content

Commit d70f4e8

Browse files
fbm3307cursoragent
andauthored
fix: increase SSO login password field timeout to 60s (#1287)
- 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. Signed-off-by: Feny Mehta <fbm3307@gmail.com> Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 6924f8a commit d70f4e8

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

  • testsupport/devsandbox-dashboard

testsupport/devsandbox-dashboard/login.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,15 @@ func (lp *LoginPage) Login(t *testing.T, loginUsername, loginPw string) {
7272
if lp.Env == DevEnv || lp.Env == ProdEnv {
7373
err := lp.NextBtn.Click()
7474
require.NoError(t, err)
75+
76+
// After "Next", the SSO server validates the username before rendering the
77+
// password form. This server-side call can be slow under load, so wait with
78+
// a longer timeout than the default 30s to avoid intermittent failures.
79+
err = lp.LoginPwLoc.WaitFor(playwright.LocatorWaitForOptions{
80+
State: playwright.WaitForSelectorStateVisible,
81+
Timeout: playwright.Float(60000),
82+
})
83+
require.NoError(t, err)
7584
}
7685

7786
err = lp.LoginPwLoc.Fill(loginPw)

0 commit comments

Comments
 (0)