Ignore failing tests in stale-screenshot-reporter.ts to avoid confusing errors

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/28925/head
Michael Telatynski 2025-01-08 09:15:20 +00:00
parent 30c82d8714
commit 0f5e135224
No known key found for this signature in database
GPG Key ID: A2B008A5F49F5D0D
1 changed files with 1 additions and 0 deletions

View File

@ -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);