test: fix project filter test (#32525)

It was erroneously passing projects separate by comma, which never
worked.
This commit is contained in:
Dmitry Gozman 2024-09-09 14:00:51 -07:00 committed by GitHub
parent e5d6ee5bd8
commit e6c5b6054d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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']);
}