Skip to content

Commit

Permalink
Ignore failing tests in stale-screenshot-reporter.ts to avoid confusi…
Browse files Browse the repository at this point in the history
…ng errors

Signed-off-by: Michael Telatynski <[email protected]>
  • Loading branch information
t3chguy committed Jan 8, 2025
1 parent 30c82d8 commit 0f5e135
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions playwright/stale-screenshot-reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class StaleScreenshotReporter implements Reporter {
private success = true;

public onTestEnd(test: TestCase): void {
if (!test.ok()) return;
for (const annotation of test.annotations) {
if (annotation.type === "_screenshot") {
this.screenshots.add(annotation.description);
Expand Down

0 comments on commit 0f5e135

Please sign in to comment.