Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions testsupport/devsandbox-dashboard/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading