Skip to content

Commit

Permalink
screem
Browse files Browse the repository at this point in the history
  • Loading branch information
IbrahimCSAE committed Dec 4, 2024
1 parent b88b87b commit 88fe24e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/utils/checkForScreenshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const checkForScreenshot = async (
});
return true;
} catch (error) {
if (i === attempts) {
if (i === attempts || i === 20) {
throw new Error('Screenshot does not match.');
}
await new Promise(resolve => setTimeout(resolve, delay));
Expand Down

0 comments on commit 88fe24e

Please sign in to comment.