From 6f0dbe8186b410d02163266b8d3e21e76730a1fd Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Tue, 28 May 2024 08:43:31 +0200 Subject: [PATCH] docs(grep): contains tags --- docs/src/test-api/class-testconfig.md | 2 +- docs/src/test-api/class-testproject.md | 2 +- packages/playwright/types/test.d.ts | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/src/test-api/class-testconfig.md b/docs/src/test-api/class-testconfig.md index fc21a4d9d9..141bdab029 100644 --- a/docs/src/test-api/class-testconfig.md +++ b/docs/src/test-api/class-testconfig.md @@ -164,7 +164,7 @@ export default defineConfig({ * since: v1.10 - 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 test file name, `test.describe` name (if any), the test name and and test tags divided by spaces, e.g. `my-test.spec.ts my-suite my-test`. `grep` option is also useful for [tagging tests](../test-annotations.md#tag-tests). diff --git a/docs/src/test-api/class-testproject.md b/docs/src/test-api/class-testproject.md index 562dc76e09..9428c99852 100644 --- a/docs/src/test-api/class-testproject.md +++ b/docs/src/test-api/class-testproject.md @@ -123,7 +123,7 @@ You can configure entire test project to concurrently run all tests in all files * since: v1.10 - 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 test file name, `test.describe` name (if any), the test name and test tags divided by spaces, e.g. `my-test.spec.ts my-suite my-test`. `grep` option is also useful for [tagging tests](../test-annotations.md#tag-tests). diff --git a/packages/playwright/types/test.d.ts b/packages/playwright/types/test.d.ts index e1299272a8..989f2dac93 100644 --- a/packages/playwright/types/test.d.ts +++ b/packages/playwright/types/test.d.ts @@ -267,7 +267,8 @@ interface TestProject { * 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` * 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`. + * `test.describe` name (if any), the test name and test tags divided by spaces, e.g. `my-test.spec.ts my-suite + * my-test`. * * `grep` option is also useful for [tagging tests](https://playwright.dev/docs/test-annotations#tag-tests). */ @@ -1131,7 +1132,7 @@ interface TestConfig { * 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 * 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`. + * any), the test name and and test tags divided by spaces, e.g. `my-test.spec.ts my-suite my-test`. * * `grep` option is also useful for [tagging tests](https://playwright.dev/docs/test-annotations#tag-tests). *