test: remove checking duration in github reporter to reduce flakiness

This commit is contained in:
Sidharth Vinod 2021-10-04 19:23:26 +05:30 committed by GitHub
parent e859a6996a
commit f4cbd9d574
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,7 +82,7 @@ test('print GitHub annotations for slow tests', async ({ runInlineTest }) => {
` `
}, { retries: 3, reporter: 'github' }, { GITHUB_ACTION: 'true', GITHUB_WORKSPACE: '' }); }, { retries: 3, reporter: 'github' }, { GITHUB_ACTION: 'true', GITHUB_WORKSPACE: '' });
const text = stripAscii(result.output); 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(text).toContain('::notice title=🎭 Playwright Run Summary::%0A 1 passed');
expect(result.exitCode).toBe(0); expect(result.exitCode).toBe(0);
}); });