This issue has been created
There are 2 updates, 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-85d3648f-97b0-4e3d-8f50-f149fd436cad XWIKI-24486 Open

LinkIT#createLinkForNotExistingPage is flickering

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-78bba424-f473-4084-8018-b681539e2afc Marius Dumitru Florea created this issue on 15/Jun/26 14:21
 
Summary: LinkIT#createLinkForNotExistingPage is flickering
Issue Type: cid:jira-generated-image-avatar-85d3648f-97b0-4e3d-8f50-f149fd436cad Bug
Affects Versions: 18.2.0
Assignee: Unassigned
Components: Development Issues only
Created: 15/Jun/26 14:21
Labels: flickering
Priority: cid:jira-generated-image-static-major-9ac49e87-7596-4b54-92a3-2980b4cb308a Major
Reporter: Marius Dumitru Florea
Description:

Fails from time to time, not very often. Stacktrace:

org.opentest4j.AssertionFailedError: expected: <true> but was: <false>
	at org.xwiki.ckeditor.test.ui.LinkIT.createLinkForNotExistingPage(LinkIT.java:153)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
 
 

2 updates

 
cid:jira-generated-image-avatar-78bba424-f473-4084-8018-b681539e2afc Changes by Marius Dumitru Florea on 15/Jun/26 14:22
 
Flickering Test: org.xwiki.ckeditor.test.ui.AllIT$NestedLinkIT#createLinkForNotExistingPage
Attachment: XWIKI-24486.png
 
 

1 comment

 
cid:jira-generated-image-avatar-78bba424-f473-4084-8018-b681539e2afc Marius Dumitru Florea on 15/Jun/26 14:28
 

Given the screenshot, it looks like the tree is still loading after this line is executed:
 

tree.waitForIt();

We need to bulletproof the LinkPickerModal / LinkTreeElement. The problem might be that the tree is marked as loading with a delay, so there is a short time frame in which the tree is not marked as loading, even though it hasn't been loaded yet.