From e6c5b6054da59a4c40d43de845051dd42bdd6732 Mon Sep 17 00:00:00 2001 From: Dmitry Gozman Date: Mon, 9 Sep 2024 14:00:51 -0700 Subject: [PATCH] test: fix project filter test (#32525) It was erroneously passing projects separate by comma, which never worked. --- tests/playwright-test/reporter-blob.spec.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/playwright-test/reporter-blob.spec.ts b/tests/playwright-test/reporter-blob.spec.ts index 8f3064a073..91b32e76a2 100644 --- a/tests/playwright-test/reporter-blob.spec.ts +++ b/tests/playwright-test/reporter-blob.spec.ts @@ -2040,12 +2040,15 @@ test('project filter in report name', async ({ runInlineTest }) => { const reportDir = test.info().outputPath('blob-report'); { - await runInlineTest(files, { shard: `2/2`, project: 'foo' }); + const result = await runInlineTest(files, { shard: `2/2`, project: 'foo' }); + expect(result.exitCode).toBe(0); const reportFiles = await fs.promises.readdir(reportDir); expect(reportFiles.sort()).toEqual(['report-foo-2.zip']); } + { - await runInlineTest(files, { shard: `1/2`, project: 'foo,b*r', grep: 'smoke' }); + const result = await runInlineTest(files, { shard: `1/2`, project: ['foo', 'b*r'], grep: 'smoke' }); + expect(result.exitCode).toBe(0); const reportFiles = await fs.promises.readdir(reportDir); expect(reportFiles.sort()).toEqual(['report-foo-b-r-6d9d49e-1.zip']); }