mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
test(test runner): check retries with beforeAll failure and multiple tests (#8413)
This commit is contained in:
parent
8e20f13079
commit
75fb77355a
@ -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!');
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user