mirror of
https://github.com/microsoft/playwright.git
synced 2024-11-28 09:23:42 +03:00
test: fix project filter test (#32525)
It was erroneously passing projects separate by comma, which never worked.
This commit is contained in:
parent
e5d6ee5bd8
commit
e6c5b6054d
@ -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']);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user