From 99c5df9c614de7413408fc7cd99fe1a546014378 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Wed, 20 Oct 2021 13:10:07 -0700 Subject: [PATCH] cherry-pick(release-1.16): Revert "chore: print global errors when running html report" (#9662) This reverts commit 68c9fce50772e3f75c5d80397b7ab9b1ceb7fd99. Co-authored-by: Pavel Feldman --- packages/playwright-test/src/reporters/html.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/playwright-test/src/reporters/html.ts b/packages/playwright-test/src/reporters/html.ts index 01f276f1d8..7337fc89ca 100644 --- a/packages/playwright-test/src/reporters/html.ts +++ b/packages/playwright-test/src/reporters/html.ts @@ -18,12 +18,11 @@ import colors from 'colors/safe'; import fs from 'fs'; import open from 'open'; import path from 'path'; -import { FullConfig, Suite, TestError } from '../../types/testReporter'; +import { FullConfig, Suite } from '../../types/testReporter'; import { HttpServer } from 'playwright-core/src/utils/httpServer'; import { calculateSha1, removeFolders } from 'playwright-core/src/utils/utils'; import RawReporter, { JsonReport, JsonSuite, JsonTestCase, JsonTestResult, JsonTestStep, JsonAttachment } from './raw'; import assert from 'assert'; -import { formatError } from './base'; export type Stats = { total: number; @@ -141,10 +140,6 @@ class HtmlReporter { } } } - - onError(error: TestError) { - console.log(formatError(error, colors.enabled)); - } } export function htmlReportFolder(outputFolder?: string): string {