From 75fb77355a3e79c25b6c646aeac9dcc11f2fb94e Mon Sep 17 00:00:00 2001 From: Dmitry Gozman Date: Tue, 24 Aug 2021 12:22:16 -0700 Subject: [PATCH] test(test runner): check retries with beforeAll failure and multiple tests (#8413) --- tests/playwright-test/retry.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/playwright-test/retry.spec.ts b/tests/playwright-test/retry.spec.ts index f502520a6c..25e916641b 100644 --- a/tests/playwright-test/retry.spec.ts +++ b/tests/playwright-test/retry.spec.ts @@ -154,12 +154,15 @@ test('should retry beforeAll failure', async ({ runInlineTest }) => { }); test('passing test', async () => { }); + test('another passing test', async () => { + }); ` }, { retries: 2 }); expect(result.exitCode).toBe(1); expect(result.passed).toBe(0); expect(result.failed).toBe(1); - expect(stripAscii(result.output).split('\n')[0]).toBe('××F'); + expect(result.skipped).toBe(1); + expect(stripAscii(result.output).split('\n')[0]).toBe('×°×°F°'); expect(result.output).toContain('BeforeAll is bugged!'); });