Commit 0721f5c
XWIKI-24807: AdministrationSectionPage#clickSave() doesn't wait for the 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>1 parent aca42c5 commit 0721f5c
1 file changed
Lines changed: 6 additions & 0 deletions
File tree
- xwiki-platform-core/xwiki-platform-administration/xwiki-platform-administration-test/xwiki-platform-administration-test-pageobjects/src/main/java/org/xwiki/administration/test/po
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
148 | 152 | | |
149 | 153 | | |
150 | 154 | | |
151 | 155 | | |
152 | 156 | | |
153 | 157 | | |
| 158 | + | |
| 159 | + | |
154 | 160 | | |
155 | 161 | | |
156 | 162 | | |
| |||
0 commit comments