Skip to main content
What you’ll learn
  • How to connect the TestDino Slack App via OAuth
  • How to configure run summaries with environment-based channel routing
  • How to set up annotation-based alerts for specific test failures

How does it work?

WarningThe Slack App integration is available on the TestDino Pro, Team, and Enterprise plans. It is not available on the Free plan.
  • Sends run summaries (status, counts, duration, environment/branch, author, commit).
  • Routes notifications by environment to specific channels; unmatched events fall back to a default channel.
  • Sends annotation-based alerts when tests with testdino:notify-slack fail, routed to specific channels or users.
  • Supports test posts for verification and quick reconfiguration.

Installation & Setup

1. Connect Slack

In Project → Integrations → Slack App, click Connect to Slack and complete the OAuth flow. TestDino Slack App integration card showing Connect to Slack button After connecting, the Slack App card shows the connected status with your workspace name. Slack App integration card showing connected status with workspace name
TipAlternatively, find and install TestDino from the Slack App Marketplace.

2. Configure channel routing

After connecting, click the ⚙️ icon on the Slack App card to open the Slack Notification Configuration dialog. The Test Run Alerts tab has two sections: Default Channel — Set a fallback channel that receives all test run alerts. Any run that doesn’t match an environment-specific channel is routed here. Environment Channels — Assign specific Slack channels to your project environments (e.g., PROD → #td-prod, STAGE → #td-stage). Runs on mapped environments route to their designated channel instead of the default. Slack Notification Configuration showing default channel, environment-specific channels, and Test buttons

3. Save and test

Click Save Configuration to apply your settings. Use the Test button next to any channel to send a sample message and verify it lands in the correct channel. Slack test message from TestDino showing test alert notification in a channel

Configuration Scenarios

The integration supports both default and environment-based channel configurations, giving you control over how alerts are delivered.

1. Default Channel Only

All test run alerts, regardless of the branch or environment, are sent to a single default channel. This is useful for centralizing all notifications.

2. Default + Environment-Specific Channels

Alerts for mapped environments (e.g., PROD Alerts) are sent to their designated channel (e.g., #prod-alerts). All alerts from unmapped branches or environments automatically fall back to the default channel (e.g., #daily-updates).

Why this helps

  • Reduce notification noise by routing alerts to environment-specific channels so teams see only relevant updates.
  • Improve incident response by sending critical failure alerts directly to the responsible team’s channel.
  • Enable faster triage with real-time summaries that link directly to detailed test evidence.

Annotation-Based Alerts

Beyond run-level alerts, the Slack App can notify specific channels or users when individual tests fail. This is driven by the testdino:notify-slack annotation in your Playwright test code. For example, if a test has testdino:notify-slack set to @ashish, and that test fails, TestDino sends a Slack message directly to Ashish. This is different from test run alerts, which fire on every run completion regardless of which tests failed.

How to set it up

  1. Add a testdino:notify-slack annotation to your test with a channel (#e2e-alerts) or user (@ashish) as the target.
  2. In the Slack Notification Configuration dialog, switch to the Annotation Alerts tab.
  3. Map each annotation target to a Slack channel or user from your workspace.
  4. Save the configuration.
Annotation Alerts tab showing annotation targets mapped to Slack channels and users See the Annotations guide for full setup instructions, code examples, and all supported annotation types.
NoteAnnotation-Slack mappings are stored at the integration level. If you disconnect the Slack App, all mappings are deleted and need to be set up again after reconnecting.

How it’s Different from Slack Webhook

The Slack App provides two types of alerts:
  • Test Run Alerts send environment-aware run summaries when any run completes.
  • Annotation-Based Alerts notify specific channels or users when individual annotated tests fail.
The Slack Webhook sends all notifications to a single channel. It does not support environment routing or annotation-based alerts.

Troubleshooting

  • Verify the Slack App is connected in Settings → Integrations → Slack
  • Ensure at least one default channel is configured in the Slack Channel Configuration
  • Use the Test button in the Slack settings to send a sample message and verify it lands in the correct channel
  • Confirm a test run has completed after connecting (messages are sent on run completion)
  • Private channels require the TestDino app to be added to the channel first. To add it:
    1. Open the private channel in Slack
    2. Click the channel name at the top to open channel details
    3. Go to the Integrations tab → click Add an App
    4. Search for TestDino. If you have already completed the OAuth connection, it appears under In Your Workspace. If not, it shows results from the Slack Marketplace. Complete the OAuth connection in TestDino first before adding the app to private channels.
  • After adding TestDino to the channel, click the Refresh button in the TestDino Slack settings to fetch the updated channel list
  • TestDino fetches all channels from your Slack workspace history. Deleted channels are excluded.
  • Check the Environment Alert Channel Mapping in Slack settings. Runs on mapped environments route to their specific channel
  • Unmapped environments fall back to the default channel
  • Use the Test button to verify which channel receives messages for a given configuration
  • Ensure the test has the testdino:notify-slack annotation with a valid target (#channel or @user)
  • Verify the annotation target is mapped to a Slack channel or user in the Annotation Alerts tab
  • Annotation alerts only fire when the annotated test fails, not on every run
  • Ensure you have permission to install apps in the Slack workspace
  • Try removing the TestDino app from Slack → Settings → Manage Apps and reconnecting from TestDino

Annotations Guide

Add metadata and Slack notification targets to tests
https://mintcdn.com/testdino/FU8Ah7hBq2DoqlMO/images/slack.svg?fit=max&auto=format&n=FU8Ah7hBq2DoqlMO&q=85&s=56713fe001e7aa927c0277aa8939b3f2

Slack Webhook

Single-channel webhook notifications