From 271ac2ab6515c1c01fe9a19bef6dd07db02a2d36 Mon Sep 17 00:00:00 2001 From: hdorgeval Date: Thu, 6 Aug 2020 20:39:35 +0200 Subject: [PATCH] fix(browserstack): filter errors by testRunId instead of browser name --- src/reporter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reporter.ts b/src/reporter.ts index b7e58eb..5ed7314 100644 --- a/src/reporter.ts +++ b/src/reporter.ts @@ -52,7 +52,7 @@ export const extendedReporterPlugin: ExtendedReporterPlugin = { report.withBrowserScreenshots(screenshots, browser); const callsiteErrors = (testRunInfo.errs || []).filter( - (err) => err.userAgent === browser, + (err) => err.testRunId === testRunId, ); if (Array.isArray(callsiteErrors) && callsiteErrors.length === 0) { return;