There is 1 update, 2 comments.
 
 
XWiki Platform / cid:jira-generated-image-avatar-bbb5adce-63c8-464b-acde-2da3e92e5acf XWIKI-23307 Open

Tag deletion confirmation test fails

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-ac42a9e9-d858-4cb5-9bc2-02027a052631 Changes by Charpentier Lucas on 17/Jun/25 12:16
 
Labels: flickering
 
 

2 comments

 
cid:jira-generated-image-avatar-ac42a9e9-d858-4cb5-9bc2-02027a052631 Charpentier Lucas on 17/Jun/25 12:16
 

_thumb_43758.png

The XPath should work.

_thumb_43759.png

AFAICS, the info box is the same and should match the XPath. My guess is that we don't have any wait, so when the testing machine is slow, this creates a flickering fail.

https://ge.xwiki.org/scans/tests?search.relativeStartTime=P90D&search.timeZoneId=Europe%2FParis&tests.container=*TagIT*#

 
cid:jira-generated-image-avatar-ac42a9e9-d858-4cb5-9bc2-02027a052631 Charpentier Lucas on 17/Jun/25 12:20
 
!screenshot-1.png|thumbnail!

The XPath should work.

!screenshot-2.png|thumbnail!

AFAICS, the info box is the same and should match the XPath. My guess is that we don't have any wait, so when the testing machine is slow, this creates a flickering fail.

https://ge.xwiki.org/scans/tests?search.relativeStartTime=P90D&search.timeZoneId=Europe%2FParis&tests.container=*TagIT*#


```
this.tagPage.clickConfirmDeleteTag();
assertTrue(this.tagPage.hasConfirmationMessage());
```
clickConfirmDeleteTag clicks a button that sends a query to the server and reloads the page, there's no wait in it.

hasConfirmationMessage uses `findElementsWithoutWaiting` with the XPath tested above. There shouldn't be any issue with it if the element was actually loaded. Since the screenshot from automated tests (which happens a few frames after the failing test) looks normal, my guess is that in some instances the check is run before the page is fully reloaded.