Skip to content

Wait for site search bar to finish expanding before typing - #3274

Closed
labkey-jeckels wants to merge 4 commits into
developfrom
fb_ehr_test_flake_fixes
Closed

labkey-jeckels wants to merge 4 commits into
developfrom
fb_ehr_test_flake_fixes

Conversation

@labkey-jeckels

@labkey-jeckels labkey-jeckels commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Rationale

Fix intermittent "could not be scrolled into view" failures when tests search from the site header, seen recently in ONPRC_RestrictedIssueTest. Expanding the search bar starts a width transition, and the input is clipped and not interactable until it finishes, but expandSearchBar() only waited for the expanded state to be set.

Related Pull Requests

Changes

  • Wait for the search bar to reach full width before returning its input

Tasks

  • Claude Code Review
  • Manual Testing - N/A
  • Test Automation - test fix

@labkey-tchad labkey-tchad left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If this isn't urgent I'm working on a similar fix in 26.11. This error shows up consistently on Firefox 153.

@labkey-jeckels

Copy link
Copy Markdown
Contributor Author

If this isn't urgent I'm working on a similar fix in 26.11. This error shows up consistently on Firefox 153.

Not urgent. Just an intermittent failure in one of my feature branches. I can close this one or retarget.

@labkey-tchad

Copy link
Copy Markdown
Member

Not urgent. Just an intermittent failure in one of my feature branches. I can close this one or retarget.

Looking at the history for that test, it looks like that failure happened in the brief period where I'd switched develop to use Firefox 153. I'd say just close this PR

@labkey-jeckels
labkey-jeckels deleted the fb_ehr_test_flake_fixes branch November 6, 2026 17:51
labkey-jeckels added a commit to LabKey/platform that referenced this pull request Nov 6, 2026
## Rationale
Destroying an Ext4 combo while it still has deferred work pending throws
a client-side error, because Ext 4.2.1 nulls the combo's store on
destroy but lets its delayed type-ahead, delayed query, and remote load
callback run afterward. Any combo can hit this; the EHR Apply Template
window does when Submit is clicked right after picking a template, which
made TNPRC_RequestsTest fail intermittently. Fixing it in the shared
Ext4 patches covers every combo, including the duplicated ONPRC template
window, instead of patching one window.

## Related Pull Requests
- LabKey/tnprcEHRModules#455
- LabKey/wnprc-modules#1072
- LabKey/testAutomation#3274

## Changes
- Skip a combo's delayed type-ahead, delayed query, and query completion
once the combo has been destroyed

## Tasks
- [x] Claude Code Review
- [x] Manual Testing - N/A
- [x] Test Automation - N/A - this is a test fix
labkey-jeckels added a commit to LabKey/wnprc-modules that referenced this pull request Nov 10, 2026
## Rationale
Fix intermittent WNPRC_EHRTest virology import failures caused by test
timing, which recently showed up as a new failure on an unrelated
feature branch. The tests picked files by their position in a list whose
order varied between runs, and checked for import results and error
messages before the asynchronous import request had returned.

## Related Pull Requests
- LabKey/platform#8286
- LabKey/tnprcEHRModules#455
- LabKey/testAutomation#3274

## Changes
- Sort the import dialog's file list so its order is stable
- Select virology files by name rather than by position
- Wait for the import to finish before submitting, and for error
messages instead of expecting them right away
- Close the preview popup only after its check passes, so failure
screenshots capture it

## Tasks
- [x] Claude Code Review
- [x] Manual Testing - N/A
- [x] Test Automation - test fix
labkey-tchad pushed a commit to LabKey/wnprc-modules that referenced this pull request Nov 10, 2026
Fix intermittent WNPRC_EHRTest virology import failures caused by test
timing, which recently showed up as a new failure on an unrelated
feature branch. The tests picked files by their position in a list whose
order varied between runs, and checked for import results and error
messages before the asynchronous import request had returned.

- LabKey/platform#8286
- LabKey/tnprcEHRModules#455
- LabKey/testAutomation#3274

- Sort the import dialog's file list so its order is stable
- Select virology files by name rather than by position
- Wait for the import to finish before submitting, and for error
messages instead of expecting them right away
- Close the preview popup only after its check passes, so failure
screenshots capture it

- [x] Claude Code Review
- [x] Manual Testing - N/A
- [x] Test Automation - test fix

(cherry picked from commit 9986ee4)
labkey-tchad pushed a commit to LabKey/platform that referenced this pull request Nov 10, 2026
## Rationale
Destroying an Ext4 combo while it still has deferred work pending throws
a client-side error, because Ext 4.2.1 nulls the combo's store on
destroy but lets its delayed type-ahead, delayed query, and remote load
callback run afterward. Any combo can hit this; the EHR Apply Template
window does when Submit is clicked right after picking a template, which
made TNPRC_RequestsTest fail intermittently. Fixing it in the shared
Ext4 patches covers every combo, including the duplicated ONPRC template
window, instead of patching one window.

## Related Pull Requests
- LabKey/tnprcEHRModules#455
- LabKey/wnprc-modules#1072
- LabKey/testAutomation#3274

## Changes
- Skip a combo's delayed type-ahead, delayed query, and query completion
once the combo has been destroyed

## Tasks
- [x] Claude Code Review
- [x] Manual Testing - N/A
- [x] Test Automation - N/A - this is a test fix

(cherry picked from commit cb67456)
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