Conditions
Reference documentation of Conditions that are available for Currents Actions
An Actions can have one or more conditions. You can use AND
or OR
combinator for multiple conditions. Use comma-separated strings to define list values.
Fields
File
Test filename path, for example path/to/file.spec.ts
.
Field Type
string
Value Types
string | string[]
Supported Operators
Test Title
Test title, for example in test definition test("should open landing page")
it is should open landing page
.
Field Type
string
Value Types
string | string[]
Supported Operators
Test Title Path
Full title path as an array including named describe
statements. ['Todo App', 'should be able to add new items']
Field Type
string[]
Value Types
string | string[]
Supported Operators
Test ID
Playwright test id, matching the test case id in the Reporter API.
Field Type
string
Value Types
string | string[]
Supported Operators
Tags
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 Types
string | string[]
Supported Operators
Project
Playwright project name as defined in your playwright.config.ts
.
Field Type
string
Value Types
string | string[]
Supported Operators
Git Author Email
Git commit author email. See Commit Information to explore how Currents collects git commit information.
Field Type
string
Value Types
string | string[]
Supported Operators
Git Author Branch
Git commit author name. See Commit Information to explore how Currents collects git commit information.
Field Type
string
Value Types
string | string[]
Supported Operators
Git Branch
Git commit branch name. See Commit Information to explore how Currents collects git commit information.
Field Type
string
Value Types
string | string[]
Supported Operators
Git Message
Git commit message. See Commit Information to explore how Currents collects git commit information.
Field Type
string
Value Types
string | string[]
Supported Operators
Git Remote Origin
Git remote origin URL. See Commit Information to explore how Currents collects git commit information.
Field Type
string
Value Types
string | string[]
Supported Operators
Operators
Basic operators
Available for all fields.
is
exact match
is not
the value is different
is any
fields doesn't exists, undefined
or null
is empty
field has no value
One to Many operators
Used to match a single value field (eg Test Title), against a list of values.
in
one of the comma-separated values is an exact match
not in
none of the comma-separated values match
Many to Many operators
Added in @currents/playwright@1.10.0
Used to match a list field (eg Test Title Path) against one or more values.
includes
all of the comma-separated values can be found in the field
includes some
at least one of the comma-separated values can be found in the field
missing
all of the comma-separated values are missing from the field
missing any
any of the comma-separated values are missing from the field
Examples
Test Id
is
1234
id is exact match
Git Author branch
not in
main,stable
no matches
Tags
includes
featureA
tag matches
Tags
includes some
featA,featB
at least one tag matches
Last updated