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/playwright2.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.
Add the re-run inputs
TestDino offers any active workflow on the test run’s branch that declares atestdino_rerun_from input. Either shape works:
- Existing workflow
- Separate workflow
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
Workflow inputs
Pin a same-commit re-run
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 runsnpx 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 workflow is offered in the panel
No workflow is offered in the panel
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.GitHub shows the branch tip for a This commit re-run
GitHub shows the branch tip for a This commit re-run
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.Related
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.