There is 1 update, 2 comments.
 
 
XWiki Platform / cid:jira-generated-image-avatar-741f6cfa-c64e-42ac-933f-b6ff40fb5cc3 XWIKI-21998 Open

LikeIT.likeUnlikeDefaultConfiguration is flickering

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-44d24dc2-8336-4d2d-8c8c-1e15cd88a7ab Changes by Vincent Massol on 07/Nov/24 13:25
 
Assignee: Vincent Massol
 
 

2 comments

 
cid:jira-generated-image-avatar-44d24dc2-8336-4d2d-8c8c-1e15cd88a7ab Vincent Massol on 07/Nov/24 13:29
 

Recent error at https://ge.xwiki.org/s/n55j523wj4yv4/tests/goal/org.xwiki.platform:xwiki-platform-like-test-docker:failsafe:integration-test@functional-tests/details/org.xwiki.like.test.ui.AllIT$NestedLikeIT/likeUnlikeDefaultConfiguration?expanded-stacktrace=WyIwIl0&top-execution=1 :

java.lang.AssertionError: Expected: a collection containing a link with text "xwiki:NestedLikeIT.likeUnlikeDefaultConfiguration.WebHome" and link "http://xwikiweb:8080/xwiki/bin/view/NestedLikeIT/likeUnlikeDefaultConfiguration"	
     but: mismatches were: [<div data-v-7630d9e7="" data-tippy-component="" interactive="" trigger="manual" theme="light-border" placement="bottom" followcursor="horizontal" arrow="" ignoreattributes="true" class="displayer-actions-popover displayer-link livedata-displayer" data-livedata-property-id="doc.title"><div data-tippy-component-trigger="" tabindex="0"><div class="view"><div><a href="#" class="explicit-empty-value">(no value)</a><!----></div><!----><!----></div></div> </div>]	
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)	
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:6)	
at org.xwiki.livedata.test.po.TableLayoutElement.assertCellWithLink(TableLayoutElement.java:271)	
at org.xwiki.like.test.ui.LikeIT.likeUnlikeDefaultConfiguration(LikeIT.java:148)
 
cid:jira-generated-image-avatar-44d24dc2-8336-4d2d-8c8c-1e15cd88a7ab Vincent Massol on 07/Nov/24 13:32
 

Both errors exist (see https://ge.xwiki.org/scans/tests?search.relativeStartTime=P90D&search.timeZoneId=Europe%2FParis&tests.container=org.xwiki.like.test.ui.AllIT$NestedLikeIT&tests.test=likeUnlikeDefaultConfiguration ) and the common point is that they both happen after a call to UserProfileLikedPagesPage#getLiveData().getTableLayout(). The issue is most likely a problem of waiting properly for the LiveData to be filled properly.