| description | Reference documentation of Conditions that are available for Currents Actions |
|---|
An Actions can have one or more condition. You can use AND or OR combinator for multiple conditions.
Test filename path, for example path/to/file.spec.ts.
| Field Type | string |
|---|---|
| Value Type | string | string[] | RegexPattern[] |
| Supported Operators | |
| Supported Actions |
Test title, for example in test definition test("should open landing page") it is should open landing page.
| Field Type | string |
|---|---|
| Value Type | string | string[] | RegexPattern[] |
| Supported Operators | |
| Supported Actions |
Full title path as an array including named describe statements. See testInfo.titlePath. To match the following example:
[
"auth.spec.ts", // e.g. spec file name
"Auth Controller", // e.g. test describe
"Should login with correct credentials" // e.g. test title
]Use a string list: :box:auth.spec.ts :box:Auth Controller :box:Should login with correct credentials
| Field Type | string[] |
|---|---|
| Value Type | string | string[] | RegexPattern[] |
| Supported Operators | |
| Supported Actions |
Playwright test id, matching the test case id in the Reporter API.
| Field Type | string |
|---|---|
| Value Type | string | string[] |
| Supported Operators | |
| Supported Actions |
Test tag list. For example, if a test has the following list of tags ['a', 'b'], each value in the list will be evaluated separately.
| Field Type | string[] |
|---|---|
| Value Type | string | string[] |
| Supported Operators | |
| Supported Actions |
Playwright project name as defined in your playwright.config.ts.
| Field Type | string |
|---|---|
| Value Type | string | string[] | RegexPattern[] |
| Supported Operators | |
| Supported Actions |
{% hint style="info" %}
Added in @currents/playwright@1.14.0
{% endhint %}
Used to match a list field (eg Test Title Path) against one or more values.
Error message thrown during the test.
| Field Type | string |
|---|---|
| Value Type | string | string[] | RegexPattern[] |
| Supported Operators | |
| Supported Actions | #post-test-actions |
Git commit author email. See commit-information.md to explore how Currents collects git commit information.
| Field Type | string |
|---|---|
| Value Type | string | string[] | RegexPattern[] |
| Supported Operators | |
| Supported Actions |
Git commit author name. See commit-information.md to explore how Currents collects git commit information.
| Field Type | string |
|---|---|
| Value Type | string | string[] | RegexPattern[] |
| Supported Operators | |
| Supported Actions |
Git commit branch name. See commit-information.md to explore how Currents collects git commit information.
| Field Type | string |
|---|---|
| Value Type | string | string[] | RegexPattern[] |
| Supported Operators | |
| Supported Actions |
Git commit message. See commit-information.md to explore how Currents collects git commit information.
| Field Type | string |
|---|---|
| Value Type | string | string[] | RegexPattern[] |
| Supported Operators | |
| Supported Actions |
Git remote origin URL. See commit-information.md to explore how Currents collects git commit information.
| Field Type | string |
|---|---|
| Value Type | string | string[] | RegexPattern[] |
| Supported Operators | |
| Supported Actions |
| Operator | Description |
|---|---|
is | value is equal or RegexPattern matches |
is not | value is different or RegexPattern does not match |
is any | field returns true for JS expression !!value === true |
is empty | field returns false for JS expression !!value === true |
Used to match a single value field (eg Test Title), against a list of values.
| Operator | Description |
|---|---|
in | one of the values from the list matches |
not in | none of the values in the list match |
{% hint style="info" %}
Added in @currents/playwright@1.10.0
{% endhint %}
Used to match a list field (eg Test Title Path) against one or more values.
| Operator | Description |
|---|---|
includes | all of the values in the list can be found in the field |
includes some | at least one of the values in the list can be found in the field |
missing | all of the values in the list are missing from the field |
missing any | any of the values in the list is missing from the field |
| Field | Operator | Value | Description |
|---|---|---|---|
| Test Id | is | 1234 | id is exact match |
| Git Branch | not in | main,stable | no matches |
| Tags | includes | featureA | tag matches |
| Tags | includes some | featA,featB | at least one tag matches |
| Error Message | is | Int(er|ra)net Error: | Errror Message matches the RegexPattern |