Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
test(test runner): check retries with beforeAll failure and multiple tests (#8413)
Dmitry Gozman75fb77355a3e
diff --git a/tests/playwright-test/retry.spec.ts b/tests/playwright-test/retry.spec.tsindex f502520a6c..25e916641b 100644--- a/tests/playwright-test/retry.spec.ts+++ b/tests/playwright-test/retry.spec.ts@@ -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!');});