Skip to content

test: set login form values via DOM property in security ITs#24359

Merged
caalador merged 1 commit into
mainfrom
flaky-spring
May 18, 2026
Merged

test: set login form values via DOM property in security ITs#24359
caalador merged 1 commit into
mainfrom
flaky-spring

Conversation

@Artur-
Copy link
Copy Markdown
Member

@Artur- Artur- commented May 16, 2026

sendKeys on the plain <input> fields introduced by the flow-components rework intermittently failed to populate the value on the second login in a test (after a prior login + logout), causing the form to POST empty credentials and Spring to 302 back to /my/login/page?error. Setting value directly via the DOM property bypasses the keystroke/focus/autofill path; the form still submits the new value since the browser reads the DOM property at submit time.

`sendKeys` on the plain `<input>` fields introduced by the
flow-components rework intermittently failed to populate the value on
the second login in a test (after a prior login + logout), causing the
form to POST empty credentials and Spring to 302 back to
`/my/login/page?error`. Setting `value` directly via the DOM property
bypasses the keystroke/focus/autofill path; the form still submits the
new value since the browser reads the DOM property at submit time.
@sonarqubecloud
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 16, 2026

Test Results

 1 410 files  ±0   1 410 suites  ±0   1h 23m 26s ⏱️ + 1m 26s
10 160 tests ±0  10 091 ✅ ±0  69 💤 ±0  0 ❌ ±0 
10 635 runs  ±0  10 564 ✅ ±0  71 💤 ±0  0 ❌ ±0 

Results for commit 8805522. ± Comparison against base commit f731eae.

♻️ This comment has been updated with latest results.

@Artur- Artur- marked this pull request as ready for review May 17, 2026 17:57
Copy link
Copy Markdown
Contributor

@caalador caalador left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the fence on this one mostly due to the fact that we are testing user input which send keys did, but this one doesn't. Then again there are other tests for setting input so this is ok as it lessens flakiness in tests.

@caalador caalador added this pull request to the merge queue May 18, 2026
Merged via the queue into main with commit 8786070 May 18, 2026
91 checks passed
@caalador caalador deleted the flaky-spring branch May 18, 2026 05:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants