This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-4f8d3556-f1ee-4551-9e91-11ada2e1c464 XWIKI-25058 Open

TagIT#addExistingTag is flickering

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-7f335150-002c-4c03-87c5-fb0a2e4a3cf0 Manuel Leduc created this issue on 30/Sep/26 15:48
 
Summary: TagIT#addExistingTag is flickering
Issue Type: cid:jira-generated-image-avatar-4f8d3556-f1ee-4551-9e91-11ada2e1c464 Bug
Affects Versions: 18.4.5
Assignee: Unassigned
Components: Development Issues only
Created: 30/Sep/26 15:48
Labels: flickering
Priority: cid:jira-generated-image-static-major-9d96ecfd-4bd2-43ec-8104-630a49ee80d3 Major
Reporter: Manuel Leduc
Description:

The functional test org.xwiki.tag.test.ui.AllIT$NestedTagIT#addExistingTag fails intermittently on ci.xwiki.org.

Occurrence

Error

org.openqa.selenium.ElementClickInterceptedException: element click intercepted: Element <input class="button button-add-tag" type="submit" value="Add"> is not clickable at point (69, 364). Other element would receive the click: <li class="xitem " style="background-image: url(&quot;http://xwikiweb0:8080/xwiki/resources/icons/silk/tag_yellow.png?cache-version=1790728190000&quot;); background-repeat
	at org.xwiki.tag.test.po.AddTagsPane.add(AddTagsPane.java:86)
	at org.xwiki.tag.test.ui.TagIT.addExistingTag(TagIT.java:152)

Analysis

The click on the Add button is intercepted by an li.xitem, i.e. the tag suggest dropdown (XWiki.widgets.Suggest attached to the tag input in tags.js, rendered inside tag-add-form-suggest). The dropdown only shows when the typed tag already exists, which is precisely the second setTags(tag) of this test, and it appears after the key-up delay plus an AJAX round trip. AddTagsPane#add() clicks the button without waiting for the suggestions or dismissing them, so when the dropdown opens between sendKeys and click() the click lands on it.

Possible fix

Dismiss the suggestions (e.g. press Escape) or wait for them in AddTagsPane#setTags, before clicking Add.

 
 

1 update

 
cid:jira-generated-image-avatar-7f335150-002c-4c03-87c5-fb0a2e4a3cf0 Changes by Manuel Leduc on 30/Sep/26 15:48
 
Flickering Test: org.xwiki.tag.test.ui.AllIT$NestedTagIT#addExistingTag