Slack

Send Playwright and Cypress tests results to Slack

Currents integration with Slack allows posting test results of your Playwright or Cypress tests directly into Slack channels.

Enabling Slack integration

In order to enable Slack integration and share Playwright test results to Slack channels, follow the steps:

  • Navigate to "Manage Project" section for the selected project

  • Click "Add Integration", and select "Slack"

  • Enter the details of your Slack Integration and click "Save"

Provide the following details to finalize Slack integration, click "Save" to finish:

  • Slack Webhook URL - Incoming Webhook URL, e.g. https://hooks.slack.com/services/XXX/YYY/ZZZ. Read more about Slack Incoming Webhooks.

  • Failed Runs Only - enabling the toggle would only send results for failed runs.

  • Events (Optional) - specify events that will trigger the integration and send the results. Leaving this field blank activates all the events.

  • Branch Name Filter (Optional) - if specified, only send notifications for runs with branch names matching the pattern. Please note, that you must provide the branch name within the Run Details to activate filtering.

Filtering Slack notifications based on Tags

  • Tags Filter (Optional) - if specified, only send notifications for tagged runs, with at least one tag matching the filter

Please note: We use glob patterns to evaluate the filters. Test your filtering rules using the playground. See examples for some popular filter patterns:

  • Include only tagA or tagB: (tagA|tagB)

  • Exclude tagA andtagB: !(tagA|tagB)

  • Include only tags starting with production: production*

  • Include only tags starting with smoke- or prod-: (smoke-*|prod-*)

What events trigger notifications for Slack // Currents integration?

The following events trigger notifications for Slack integration.

Run Start

Triggered when a new run starts. If a run contains multiple groups, the notification will be triggered for each group.

Run Finish

Triggered when a run finishes its execution. If a run contains multiple groups, the notification will be triggered for each group.

Run Timeout

Triggered when a time out detected for a run. The message will contain the last known results for the run or run group.

Run Canceled

Triggered when a run gets cancelled. If a run contains multiple groups, the notification will be triggered for each group. The message will contain the last known results for the run or run group.

Disabling Slack integration

To disable Slack integration, simply delete the integration from the list of integrations.

FAQ

Can I have multiple Slack integrations for the same project?

Yes, you can have multiple Slack integrations for the same project.

What do notification status colours mean?

Green - passed tests

Red - failed + skipped tests

Grey - ignored tests

Purple - flaky tests

Last updated