test(test runner): check retries with beforeAll failure and multiple tests (#8413)

This commit is contained in:
Dmitry Gozman 2021-08-24 12:22:16 -07:00 committed by GitHub
parent 8e20f13079
commit 75fb77355a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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!');
});