feat(test-runner): test filter #41150
infra.yml
on: pull_request
docs & lint
3m 47s
Lint snippets
1m 11s
Annotations
1 error and 1 warning
Lint snippets
Process completed with exit code 1.
|
js linting error:
docs/src/test-api/class-testconfig.md#L1
Error: Duplicate key 'filter'.
4 | filter: test => test.title === 'some test',
5 | // or
> 6 | filter: { filterTests: tests => tests.filter((test, index) => index % 2 === 0) },
| ^
7 | // or
8 | filter: { filterTestGroups: testgroups => testgroups.filter((testgroups, index) => index % 2 === 0) },
9 | });
Unable to lint:
import { defineConfig } from '@playwright/test';
export default defineConfig({
filter: test => test.title === 'some test',
// or
filter: { filterTests: tests => tests.filter((test, index) => index % 2 === 0) },
// or
filter: { filterTestGroups: testgroups => testgroups.filter((testgroups, index) => index % 2 === 0) },
});
|