Skip to content

Re-enable testSubmitButtonsDisabledDuringValidation by holding validation open - #2004

Merged
labkey-martyp merged 2 commits into
release26.7-SNAPSHOTfrom
26.7_fb_validating_indicator_on_load
Nov 25, 2026
Merged

labkey-martyp merged 2 commits into
release26.7-SNAPSHOTfrom
26.7_fb_validating_indicator_on_load

Conversation

@labkey-martyp

Copy link
Copy Markdown
Contributor

Rationale

Re-enable ONPRC_EHRTest.testSubmitButtonsDisabledDuringValidation, which was disabled in #1866 for flaking on a timing race. Force Submit is only disabled while validation is in flight, and a fast validation pass could finish before the test opened the More Actions menu, so the disabled check failed intermittently. The test now holds the form's validation responses in the browser while it inspects the actions, which makes the in-flight state last as long as the checks need.

Related Pull Requests

Changes

  • Hold validation responses in the page while checking the actions, then release them and check the settled state.
  • Check every validation-gated action on the form instead of a fixed list that silently skipped a mislabeled button.
  • Open Medications/Diet by its exact label so the test cannot land on CMU Medications/Diet.

…tion open

The test raced validation: Force Submit is disabled only while validation is in flight, and a fast pass finished before the More Actions menu rendered. It now holds the form's validation responses while it checks the actions, then releases them. It also opens Medications/Diet by exact label, since the substring match could pick CMU Medications/Diet.
The gated actions are configured disabled, so check Force Submit is enabled before adding animals, and fail if the hold intercepts no validation requests rather than silently racing again.

@labkey-martyp labkey-martyp left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Test ran 12 times at different times of day successfully. Flakiness seems to be gone.

@labkey-martyp
labkey-martyp merged commit 5dee3e0 into release26.7-SNAPSHOT Nov 25, 2026
8 of 10 checks passed
@labkey-martyp
labkey-martyp deleted the 26.7_fb_validating_indicator_on_load branch November 25, 2026 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants