From e4786e015434955b6601fd7851fac06088930f65 Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Wed, 16 Oct 2024 10:59:18 +0200 Subject: [PATCH] remove category --- packages/html-reporter/src/testCaseView.spec.tsx | 3 --- packages/html-reporter/src/types.ts | 1 - packages/playwright/src/reporters/html.ts | 1 - 3 files changed, 5 deletions(-) diff --git a/packages/html-reporter/src/testCaseView.spec.tsx b/packages/html-reporter/src/testCaseView.spec.tsx index 6b44514900..38951c1730 100644 --- a/packages/html-reporter/src/testCaseView.spec.tsx +++ b/packages/html-reporter/src/testCaseView.spec.tsx @@ -27,7 +27,6 @@ const result: TestResult = { errors: [], steps: [{ title: 'Outer step', - category: 'test.step', startTime: new Date(100).toUTCString(), duration: 10, location: { file: 'test.spec.ts', line: 62, column: 0 }, @@ -35,7 +34,6 @@ const result: TestResult = { steps: [{ title: 'Inner step', startTime: new Date(200).toUTCString(), - category: 'test.step', duration: 10, location: { file: 'test.spec.ts', line: 82, column: 0 }, steps: [], @@ -138,7 +136,6 @@ const resultWithAttachment: TestResult = { errors: [], steps: [{ title: 'Outer step', - category: 'test.step', startTime: new Date(100).toUTCString(), duration: 10, location: { file: 'test.spec.ts', line: 62, column: 0 }, diff --git a/packages/html-reporter/src/types.ts b/packages/html-reporter/src/types.ts index 7322106753..7a99184739 100644 --- a/packages/html-reporter/src/types.ts +++ b/packages/html-reporter/src/types.ts @@ -102,7 +102,6 @@ export type TestResult = { export type TestStep = { title: string; - category: 'hook' | 'fixture' | 'test.step' | 'expect' | 'attach' | string; startTime: string; duration: number; location?: Location; diff --git a/packages/playwright/src/reporters/html.ts b/packages/playwright/src/reporters/html.ts index 7403985bcb..b48f3af256 100644 --- a/packages/playwright/src/reporters/html.ts +++ b/packages/playwright/src/reporters/html.ts @@ -498,7 +498,6 @@ class HtmlBuilder { const { step, duration, count } = dedupedStep; const testStep: TestStep = { title: step.title, - category: step.category, startTime: step.startTime.toISOString(), duration, steps: dedupeSteps(step.steps).map(s => this._createTestStep(s, result)),