Skip to content

E2E Tests: add visual regression testing #1471

@mnzaki

Description

@mnzaki

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions