Skip to content

[stable-18.4.x] XWIKI-24807: AdministrationSectionPage#clickSave() doesn't wait for the page reload, causing flickering StaleElementReferenceException in administration UI tests - #6314

Merged
surli merged 1 commit into
stable-18.4.xfrom
backport/stable-18.4.x/XWIKI-24807
Sep 4, 2026
Merged

[stable-18.4.x] XWIKI-24807: AdministrationSectionPage#clickSave() doesn't wait for the page reload, causing flickering StaleElementReferenceException in administration UI tests#6314
surli merged 1 commit into
stable-18.4.xfrom
backport/stable-18.4.x/XWIKI-24807

Conversation

@surli

@surli surli commented Sep 4, 2026

Copy link
Copy Markdown
Member

Jira URL

https://jira.xwiki.org/browse/XWIKI-24807

Changes

Description

Clarifications

  • Clean cherry-pick (git cherry-pick -x) of the master commit, no adaptation needed (no new
    module/API, no @since tag, no Java-level difference).
  • This is the branch on which the original flicker was observed in CI
    (AllIT$NestedPresentationIT#showPageAttachmentsTab), see XWIKI-24807 for the full analysis.

Screenshots & Video

N/A — no UI change, this only affects test synchronization.

Executed Tests

  • mvn clean install -B -ntp -Plegacy -pl xwiki-platform-core/xwiki-platform-administration/xwiki-platform-administration-test/xwiki-platform-administration-test-pageobjects — green on this branch.
  • Re-ran the whole PresentationIT docker IT class with showPageAttachmentsTab repeated 10 times,
    against Tomcat 11/jdk25 + PostgreSQL + Chrome (matching the failing CI job): 15/15 executions
    passed, BUILD SUCCESS.

Expected merging strategy

  • Prefers squash: Yes
  • Backport on branches:
    • N/A (this is the backport PR)

🤖 Generated with Claude Code

…he page reload, causing flickering StaleElementReferenceException in administration UI tests

* clickSave(boolean) now synchronizes on the full-page reload triggered by a
  non-async section's save button, using the existing
  addPageNotYetReloadedMarker()/waitUntilPageIsReloaded() idiom, instead of
  returning immediately after the click
* this avoids a race where a caller reading back the saved value right after
  clickSave() can hit a stale element from the page being unloaded

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
(cherry picked from commit 1fee990)
@surli surli self-assigned this Sep 4, 2026
@surli
surli merged commit 1a0120d into stable-18.4.x Sep 4, 2026
3 checks passed
@surli
surli deleted the backport/stable-18.4.x/XWIKI-24807 branch September 4, 2026 13:25
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.

1 participant