Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E2E Tests: add visual regression testing #1471

Open
mnzaki opened this issue Sep 18, 2019 · 0 comments
Open

E2E Tests: add visual regression testing #1471

mnzaki opened this issue Sep 18, 2019 · 0 comments
Labels

Comments

@mnzaki
Copy link
Contributor

mnzaki commented Sep 18, 2019

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 mnzaki added the backlog label Sep 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant