Skip to content

Fix for AuthenticationProviderReorderTest.testReorderConfigurations - #3183

Merged
DariaBod merged 1 commit into
release26.7-SNAPSHOTfrom
26.7_fb_authenticationPrividerReorderTest
Sep 3, 2026
Merged

Fix for AuthenticationProviderReorderTest.testReorderConfigurations#3183
DariaBod merged 1 commit into
release26.7-SNAPSHOTfrom
26.7_fb_authenticationPrividerReorderTest

Conversation

@DariaBod

@DariaBod DariaBod commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

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

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.

DariaBod added a commit to LabKey/platform that referenced this pull request Sep 3, 2026
…8015)

## 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
- LabKey/testAutomation#3183

## 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.

<!-- list of standard tasks (remove this comment to enable)
## Tasks
- [ ] Claude Code Review
- [ ] Manual Testing
- [ ] Test Automation
- [ ] Verify Fix
-->
@DariaBod
DariaBod merged commit a2651b7 into release26.7-SNAPSHOT Sep 3, 2026
7 of 8 checks passed
@DariaBod
DariaBod deleted the 26.7_fb_authenticationPrividerReorderTest branch September 3, 2026 21:33
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