From f4cbd9d574a1fcce8ed8c8dfd3bca4779c3bc399 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Mon, 4 Oct 2021 19:23:26 +0530 Subject: [PATCH] test: remove checking duration in github reporter to reduce flakiness --- tests/playwright-test/github-reporter.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/playwright-test/github-reporter.spec.ts b/tests/playwright-test/github-reporter.spec.ts index 685b440cc2..b1c7e88586 100644 --- a/tests/playwright-test/github-reporter.spec.ts +++ b/tests/playwright-test/github-reporter.spec.ts @@ -82,7 +82,7 @@ test('print GitHub annotations for slow tests', async ({ runInlineTest }) => { ` }, { retries: 3, reporter: 'github' }, { GITHUB_ACTION: 'true', GITHUB_WORKSPACE: '' }); const text = stripAscii(result.output); - expect(text).toContain('::warning title=Slow Test,file=a.test.js::a.test.js took 2'); + expect(text).toContain('::warning title=Slow Test,file=a.test.js::a.test.js took'); expect(text).toContain('::notice title=🎭 Playwright Run Summary::%0A 1 passed'); expect(result.exitCode).toBe(0); }); \ No newline at end of file