Skip to main content
Declare TestDino’s re-run inputs on a GitHub Actions workflow so the Re-run button on a test run can start that workflow with the selected test cases. Learn how to start a re-run in Re-run failed Playwright tests.

When you need these inputs

A This commit re-run of a test run from GitHub Actions, scoped to Failed or Both, re-runs the failed jobs inside the original GitHub run. It needs no workflow inputs. Every other re-run starts a new workflow run and needs the inputs on this page:
  • Latest on <branch>
  • The Flaky and Custom scopes
  • A test run that did not come from GitHub Actions, or that GitHub can no longer re-run (in progress, or older than 30 days)

Prerequisites

  • GitHub connected to the project in Project settings, under Integrations, with the TestDino GitHub App allowed to start workflows.
  • @testdino/playwright 2.7.0 or later and Playwright 1.56 or later in the repository. Extra tags need 2.7.6 or later.
  • A workflow that runs your tests with npx tdpw test.

Set up with an AI agent

Paste this prompt into your coding agent, or follow the manual steps below.

Add TestDino re-run inputs to the GitHub Actions workflow that runs Playwright.

Open in Cursor

Add the re-run inputs

TestDino offers any active workflow on the test run’s branch that declares a testdino_rerun_from input. Either shape works:
Add workflow_dispatch and the inputs to the workflow you already run Playwright with. The if [ -n "$TD_RERUN_FROM" ] guard keeps a normal push unchanged: on a push the input is empty, so no re-run arguments are added.
.github/workflows/playwright.yml
The workflow file must be on the test run’s branch. A workflow that exists only on another branch cannot run the re-run, and the panel names it under the workflow picker.

Workflow inputs

Pin a same-commit re-run

Pass testdino_rerun_sha to actions/checkout as ref:, as in both examples above. A workflow that declares the input without using it reports a This commit re-run while it runs the latest code on the branch.
GitHub uses the workflow file from the latest commit on the branch. A This commit re-run therefore runs the original test code under your current workflow configuration.

Run only the failed test cases in each job

This section applies to a This commit re-run inside the original GitHub run. Each retried job runs only the test cases that failed in it when the job runs npx tdpw test with @testdino/playwright 2.7.8 or later. Your job’s command stays the same. Otherwise every test case in the failed jobs runs again. The button reads Re-run failed jobs in full, the panel shows Every test in the failed jobs will run again with the change to make, and the job log line that starts with TestDino: running the full command on this GitHub retry gives the reason.

Troubleshooting

No active workflow on the branch declares a testdino_rerun_from input, or the TestDino GitHub App cannot start workflows. Add the inputs as shown in Add the re-run inputs. Until then, Run manually in the panel gives the terminal command.
The panel shows 1 of these reasons:
  • The run recorded no commit to pin to.
  • The run recorded an abbreviated commit, which cannot be pinned.
  • This workflow does not declare the testdino_rerun_sha input, so it cannot check out a specific commit.
For the last one, add testdino_rerun_sha and pass it to checkout as shown in Pin a same-commit re-run. Otherwise, use Latest.
GitHub starts a dispatched workflow from a branch, so the workflow run page shows the latest commit on the branch. The ref: line in checkout then switches the job to the commit you picked. The HEAD is now at line in the checkout step’s log and the commit on the new test run in TestDino both show the pinned commit.To show the pinned commit on GitHub too, add a top-level run-name next to name: in the workflow. Other workflow runs keep their default title.

Re-run failed tests

Start a re-run from the dashboard, terminal, or an AI agent.

GitHub Actions

Report Playwright results from GitHub Actions.

Node.js CLI

Every npx tdpw test flag, including --rerun.

MCP tools

rerun_test parameters for agent-started re-runs.
Last modified on October 8, 2026