docs(grep): contains tags (#31042)
This commit is contained in:
parent
3d7bd70aea
commit
63fd28e038
|
|
@ -164,7 +164,7 @@ export default defineConfig({
|
||||||
* since: v1.10
|
* since: v1.10
|
||||||
- type: ?<[RegExp]|[Array]<[RegExp]>>
|
- type: ?<[RegExp]|[Array]<[RegExp]>>
|
||||||
|
|
||||||
Filter to only run tests with a title matching one of the patterns. For example, passing `grep: /cart/` should only run tests with "cart" in the title. Also available in the [command line](../test-cli.md) with the `-g` option. The regular expression will be tested against the string that consists of the test file name, `test.describe` name (if any) and the test name divided by spaces, e.g. `my-test.spec.ts my-suite my-test`.
|
Filter to only run tests with a title matching one of the patterns. For example, passing `grep: /cart/` should only run tests with "cart" in the title. Also available in the [command line](../test-cli.md) with the `-g` option. The regular expression will be tested against the string that consists of the project name, the test file name, the `test.describe` name (if any), the test name and the test tags divided by spaces, e.g. `chromium my-test.spec.ts my-suite my-test`.
|
||||||
|
|
||||||
`grep` option is also useful for [tagging tests](../test-annotations.md#tag-tests).
|
`grep` option is also useful for [tagging tests](../test-annotations.md#tag-tests).
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -123,7 +123,7 @@ You can configure entire test project to concurrently run all tests in all files
|
||||||
* since: v1.10
|
* since: v1.10
|
||||||
- type: ?<[RegExp]|[Array]<[RegExp]>>
|
- type: ?<[RegExp]|[Array]<[RegExp]>>
|
||||||
|
|
||||||
Filter to only run tests with a title matching one of the patterns. For example, passing `grep: /cart/` should only run tests with "cart" in the title. Also available globally and in the [command line](../test-cli.md) with the `-g` option. The regular expression will be tested against the string that consists of the test file name, `test.describe` name (if any) and the test name divided by spaces, e.g. `my-test.spec.ts my-suite my-test`.
|
Filter to only run tests with a title matching one of the patterns. For example, passing `grep: /cart/` should only run tests with "cart" in the title. Also available globally and in the [command line](../test-cli.md) with the `-g` option. The regular expression will be tested against the string that consists of the project name, the test file name, the `test.describe` name (if any), the test name and the test tags divided by spaces, e.g. `chromium my-test.spec.ts my-suite my-test`.
|
||||||
|
|
||||||
`grep` option is also useful for [tagging tests](../test-annotations.md#tag-tests).
|
`grep` option is also useful for [tagging tests](../test-annotations.md#tag-tests).
|
||||||
|
|
||||||
|
|
|
||||||
10
packages/playwright/types/test.d.ts
vendored
10
packages/playwright/types/test.d.ts
vendored
|
|
@ -266,8 +266,9 @@ interface TestProject<TestArgs = {}, WorkerArgs = {}> {
|
||||||
/**
|
/**
|
||||||
* Filter to only run tests with a title matching one of the patterns. For example, passing `grep: /cart/` should only
|
* Filter to only run tests with a title matching one of the patterns. For example, passing `grep: /cart/` should only
|
||||||
* run tests with "cart" in the title. Also available globally and in the [command line](https://playwright.dev/docs/test-cli) with the `-g`
|
* run tests with "cart" in the title. Also available globally and in the [command line](https://playwright.dev/docs/test-cli) with the `-g`
|
||||||
* option. The regular expression will be tested against the string that consists of the test file name,
|
* option. The regular expression will be tested against the string that consists of the project name, the test file
|
||||||
* `test.describe` name (if any) and the test name divided by spaces, e.g. `my-test.spec.ts my-suite my-test`.
|
* name, the `test.describe` name (if any), the test name and the test tags divided by spaces, e.g. `chromium
|
||||||
|
* my-test.spec.ts my-suite my-test`.
|
||||||
*
|
*
|
||||||
* `grep` option is also useful for [tagging tests](https://playwright.dev/docs/test-annotations#tag-tests).
|
* `grep` option is also useful for [tagging tests](https://playwright.dev/docs/test-annotations#tag-tests).
|
||||||
*/
|
*/
|
||||||
|
|
@ -1130,8 +1131,9 @@ interface TestConfig<TestArgs = {}, WorkerArgs = {}> {
|
||||||
/**
|
/**
|
||||||
* Filter to only run tests with a title matching one of the patterns. For example, passing `grep: /cart/` should only
|
* Filter to only run tests with a title matching one of the patterns. For example, passing `grep: /cart/` should only
|
||||||
* run tests with "cart" in the title. Also available in the [command line](https://playwright.dev/docs/test-cli) with the `-g` option. The
|
* run tests with "cart" in the title. Also available in the [command line](https://playwright.dev/docs/test-cli) with the `-g` option. The
|
||||||
* regular expression will be tested against the string that consists of the test file name, `test.describe` name (if
|
* regular expression will be tested against the string that consists of the project name, the test file name, the
|
||||||
* any) and the test name divided by spaces, e.g. `my-test.spec.ts my-suite my-test`.
|
* `test.describe` name (if any), the test name and the test tags divided by spaces, e.g. `chromium my-test.spec.ts
|
||||||
|
* my-suite my-test`.
|
||||||
*
|
*
|
||||||
* `grep` option is also useful for [tagging tests](https://playwright.dev/docs/test-annotations#tag-tests).
|
* `grep` option is also useful for [tagging tests](https://playwright.dev/docs/test-annotations#tag-tests).
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue