Fix story backups mock test & read-receipt setting restoration
This commit is contained in:
parent
1898e964ad
commit
4c7ce51caf
4 changed files with 15 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue