mi6 / ic-ui-kit

Intelligence Community UI Kit (based on StencilJS)
MIT License
19 stars 23 forks source link

[Cypress] add dynamic directories to the cypress tests #1952

Open gd2910 opened 1 month ago

gd2910 commented 1 month ago

Summary

As more components are moved over to Cypress visual regression testing the baseline image directory has become unwieldy, sorting snapshots into dynamic component based directories would help with navigation and testing.

💬 Description

image

An attempt to use the cypress-image-diff config, which may need to be used in conjunction with a cypress custom command (possibly in a beforeAll() function of the visual regression describe blocks.