Fix story backups mock test & read-receipt setting restoration

This commit is contained in:
trevor-signal 2024-08-28 17:20:33 -04:00 committed by GitHub
parent 1898e964ad
commit 4c7ce51caf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 15 additions and 4 deletions

View file

@ -481,7 +481,10 @@ export class Bootstrap {
const window = await app.getWindow();
await callback(window, async (name: string) => {
debug('creating screenshot');
snapshots.push({ name, data: await window.screenshot() });
snapshots.push({
name,
data: await window.screenshot(),
});
});
let index = 0;
@ -512,7 +515,7 @@ export class Bootstrap {
{}
);
if (numPixels === 0) {
if (numPixels === 0 && !process.env.FORCE_ARTIFACT_SAVE) {
debug('no screenshot difference');
return;
}