Skip to content

Commit

Permalink
fix(browserstack): filter errors by testRunId instead of browser name
Browse files Browse the repository at this point in the history
  • Loading branch information
hdorgeval committed Aug 6, 2020
1 parent 9ee1329 commit 271ac2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 271ac2a

Please sign in to comment.