smartwallet-app icon indicating copy to clipboard operation
smartwallet-app copied to clipboard

E2E Tests: add visual regression testing

Open mnzaki opened this issue 6 years ago • 0 comments

Description

Jest has support for image snapshots: https://www.npmjs.com/package/jest-image-snapshot Detox has support for taking screenshots: https://github.com/wix/Detox/blob/master/docs/APIRef.DeviceObjectAPI.md#devicetakescreenshotname

BUT detox will only save artifacts (including screenshots) after test completion, which is not compatible with how jest-image-snapshot expects to test them

Another issue is that the tests run on both android and iOS and will have different screenshots, and that must be compensated for somehow

mnzaki avatar Sep 18 '19 15:09 mnzaki