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('passing test', async () => {
|
||||||
});
|
});
|
||||||
|
test('another passing test', async () => {
|
||||||
|
});
|
||||||
`
|
`
|
||||||
}, { retries: 2 });
|
}, { retries: 2 });
|
||||||
expect(result.exitCode).toBe(1);
|
expect(result.exitCode).toBe(1);
|
||||||
expect(result.passed).toBe(0);
|
expect(result.passed).toBe(0);
|
||||||
expect(result.failed).toBe(1);
|
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!');
|
expect(result.output).toContain('BeforeAll is bugged!');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue