Skip to content

Commit

Permalink
Example of taking screenshots during Export e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
philrz committed Jan 17, 2024
1 parent 6ca23cb commit a71fbad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/zui-player/tests/export.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ test.describe('Export tests', () => {
.waitFor();

expect(fsExtra.statSync(file).size).toBe(expectedSize);
await app.takeScreenshot('export-' + label + '.png');
});
});
});

0 comments on commit a71fbad

Please sign in to comment.