Skip to content

DetailTableEdit save and cancel buttons to include withText() in Locator#2720

Merged
cnathe merged 2 commits intodevelopfrom
fb_fixTestCancelClick
Oct 2, 2025
Merged

DetailTableEdit save and cancel buttons to include withText() in Locator#2720
cnathe merged 2 commits intodevelopfrom
fb_fixTestCancelClick

Conversation

@cnathe
Copy link
Contributor

@cnathe cnathe commented Oct 2, 2025

Rationale

SMEditableGridTest.testEditLookupNotFound randomly fails when trying to click the Cancel button on the detail edit panel. This is because when it randomly creates fields for the source type, it will occasionally include a date/time field. This field type includes a little "X" icon/button in the input field display which is used to clear the value in the input. The Locator for the cancel button is just looking for a "button" tag, which ends up clicking the date/time input clear icon/button.

Screenshot 2025-10-02 at 8 53 17 AM

Changes

  • DetailTableEdit save and cancel buttons to include withText() in Locator

@cnathe cnathe requested a review from labkey-danield October 2, 2025 14:05
@cnathe cnathe self-assigned this Oct 2, 2025
@cnathe cnathe merged commit 4d51fbf into develop Oct 2, 2025
5 of 6 checks passed
@cnathe cnathe deleted the fb_fixTestCancelClick branch October 2, 2025 17:52
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