Always run certain tests even if AI chooses to exclude them
Suppose you want to check that customers can sign in on every pull request, even one that only changes the help page. Tag the sign-in test, then tell TestPerch to always run tests with that tag.
Add a tag such as @smoke to the Playwright test you want to run.
test("a customer can sign in", { tag: "@smoke" }, async ({ page }) => { // Keep your existing test steps here.});- Open Project settings → AI. Under Target environments, find the environment where you use AI test selection. If you haven’t set one up yet, map your branch or pull requests to an environment.
- Enter
@smokeunder Always-run tags and save. Use the same spelling and capitalization as in your test. - After the next run in that environment, open Runs and look for the sign-in test in the results.
You can use the same tag on any other tests you want AI to include.