Skip to content

Fix for AuthenticationProviderReorderTest.testReorderConfigurations - #8015

Merged
DariaBod merged 2 commits into
release26.7-SNAPSHOTfrom
26.7_fb_authenticationPrividerReorderTest
Sep 3, 2026
Merged

Fix for AuthenticationProviderReorderTest.testReorderConfigurations#8015
DariaBod merged 2 commits into
release26.7-SNAPSHOTfrom
26.7_fb_authenticationPrividerReorderTest

Conversation

@DariaBod

@DariaBod DariaBod commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Rationale

onDragEnd compared globalSettings against the whole dirtinessData object instead of dirtinessData.globalSettings, and isEquivalent compares key counts first, so dirty was unconditionally true after any drag-end — the unsaved-changes banner and navigate-away warning appeared even when a row was dropped back in place. AuthenticationProviderReorderTest relied on that banner to confirm the drag had landed, so it could not tell a failed drop from a successful one.

Related Pull Requests

Changes

  • AuthenticationConfiguration.onDragEnd compares against dirtinessData.globalSettings, matching how globalAuthOnChange already does it.
  • AuthenticationProviderReorderTest reorders through keyboardDragAndDrop and waits for the now-meaningful unsaved-changes banner before saving.

@DariaBod DariaBod changed the title 26.7 fb authentication privider reorder test Fix for AuthenticationProviderReorderTest.testReorderConfigurations Sep 2, 2026
@LabKey LabKey deleted a comment from github-actions Bot Sep 2, 2026

@labkey-nicka labkey-nicka left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Client-side change looks good. I'll leave PR approval for @labkey-danield.

@DariaBod
DariaBod merged commit 17e561f into release26.7-SNAPSHOT Sep 3, 2026
12 of 13 checks passed
@DariaBod
DariaBod deleted the 26.7_fb_authenticationPrividerReorderTest branch September 3, 2026 21:33
DariaBod added a commit to LabKey/testAutomation that referenced this pull request Sep 3, 2026
…3183)

## Rationale
A single-jump Selenium drag can lift and drop having registered no
movement, so the reorder silently does nothing. Some of the changes in
this PR are already in develop due to previous test fixes.

## Related Pull Requests
- LabKey/platform#8015

## Changes
- `WebDriverWrapper.keyboardDragAndDrop(WebElement, int)` drives the
library's keyboard sensor instead of the mouse: Space to lift, one Arrow
per step, Space to drop.
- Overload taking a target element derives the step count from the two
handles' sibling indexes, so call sites read like the existing
`dragAndDrop(from, to)`.
- `FieldSelectionDialog.repositionField` delegates to the shared helper
instead of its own copy.
- `LoginConfigRow.getDragHandle()` exposes a row's drag handle. On the
authentication configuration page `dragHandleProps` sit on the row
wrapper rather than the visible `.domain-row-handle` icon, so the handle
is an ancestor of the row's component element.

<!-- list of standard tasks (remove this comment to enable)
## Tasks
- [ ] Claude Code Review
- [ ] Manual Testing
- [ ] Test Automation
- [ ] Verify Fix
-->
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.

3 participants