org.opentest4j.AssertionFailedError: expected: <true> but was: <false>
at org.xwiki.realtime.wysiwyg.test.ui.RealtimeWYSIWYGEditorIT.syntaxChange(RealtimeWYSIWYGEditorIT.java:2247)
i.e. assertTrue(firstEditPage.getToolbar().isCollaborating()): the recreated editor didn't join the realtime session, which is the symptom described here (and the cause of XWIKI-24287).
The racy guard is on stable-17.10.x: XWIKI-23985 was fixed in 17.10.4, and xwiki-realtime/plugin.js on stable-17.10.x still has, in editor._realtime.connect:
if (editor.mode !== 'wysiwyg') {
// Realtime collaboration is supported, but we can't join until the user switches to WYSIWYG mode.
returntrue;
}
It's intermittent: 1 failure in the last 10 builds/environments, and 3/3 passed when run locally on the same commit with the same configuration. It's a product bug, though, not just a test flicker: users of 17.10.x can silently end up editing outside the realtime session.
So 17.10.4 should be added to the Affects Version/s, and the fix backported to stable-17.10.x (the 17.10.x plugin.js is structured differently, so the backport needs adapting rather than a plain cherry-pick).
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.