diff --git a/packages/html-reporter/src/testCaseView.spec.tsx b/packages/html-reporter/src/testCaseView.spec.tsx
index 7cc9f8991c..183d44c019 100644
--- a/packages/html-reporter/src/testCaseView.spec.tsx
+++ b/packages/html-reporter/src/testCaseView.spec.tsx
@@ -59,7 +59,7 @@ const testCase: TestCase = {
],
tags: [],
outcome: 'expected',
- duration: 10,
+ duration: 200,
ok: true,
results: [result]
};
@@ -212,6 +212,35 @@ test('should correctly render prev and next', async ({ mount }) => {
- text: group
- link "« previous"
- link "next »"
- - text: "My test test.spec.ts:42 10ms"
+ - text: "My test test.spec.ts:42 100ms"
+ `);
+});
+
+
+const testCaseWithTwoAttempts: TestCase = {
+ ...testCase,
+ results: [
+ {
+ ...result,
+ errors: ['Error message'],
+ status: 'failed',
+ duration: 50,
+ },
+ {
+ ...result,
+ duration: 150,
+ status: 'passed',
+ },
+ ],
+};
+
+test('total duration is selected run duration', async ({ mount, page }) => {
+ const component = await mount(