From 746acd41582520823954d2599bc546b2baef0b1f Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Tue, 16 Jul 2024 15:27:02 -0700 Subject: [PATCH] Update test expectations --- tests/playwright-test/reporter-attachment.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/playwright-test/reporter-attachment.spec.ts b/tests/playwright-test/reporter-attachment.spec.ts index 83f9543e00..50d6d1ee0c 100644 --- a/tests/playwright-test/reporter-attachment.spec.ts +++ b/tests/playwright-test/reporter-attachment.spec.ts @@ -99,8 +99,8 @@ test(`testInfo.attach errors`, async ({ runInlineTest }) => { const text = result.output.replace(/\\/g, '/'); expect(text).toMatch(/Error: ENOENT: no such file or directory, copyfile '.*foo.txt.*'/); expect(text).toContain(`Exactly one of "path" and "body" must be specified`); - expect(result.passed).toBe(0); - expect(result.failed).toBe(3); + expect(result.passed).toBe(1); + expect(result.failed).toBe(2); expect(result.exitCode).toBe(1); });