This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-88bb881b-293a-4ca8-bf74-c373400130fe XWIKI-25745 Open

Support screenshot tests of Vue components in the node tests

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-3cc6cb80-f1c7-4baf-826c-dc2a9d3392f3 Charpentier Lucas created this issue on 12/Nov/26 17:19
 
Summary: Support screenshot tests of Vue components in the node tests
Issue Type: cid:jira-generated-image-avatar-88bb881b-293a-4ca8-bf74-c373400130fe Improvement
Affects Versions: 18.9.0
Assignee: Unassigned
Components: Node, Test Framework
Created: 12/Nov/26 17:19
Priority: cid:jira-generated-image-static-major-dffc2c47-392b-4743-9ac3-b4a0a873ce64 Major
Reporter: Charpentier Lucas
Description:

Visual checks of Vue components, such as the small screen layout of the Live Data, can currently only be written as Docker functional tests with the ScreenshotComparator, e.g. SkinVisualIT#liveDataSmallScreen. Starting a whole XWiki instance to take a screenshot of a single component is slow and heavy.

We should support screenshot tests directly in the node tests of the Vue components, e.g. with Vitest browser mode, so that such checks can run without an XWiki instance.

Once available, SkinVisualIT#liveDataSmallScreen is a first candidate to move to the Live Data node tests.