Run tests against staging, preview, and other environments
Environments let you run tests and suites against different base URLs — like
staging or preview deployments — without modifying your test configurations.
Once you’ve created environments, a dropdown appears on the Run button
for both individual tests and suites:
Individual tests — Click the Run Test dropdown and select an
environment. The test runs against that environment’s URL instead of the
original.
Suites — Click the play button on a suite row and choose an
environment, or select Default (original URLs) to run with the
original test URLs.
Create separate environments for each deployment target your team uses
(staging, QA, preview branches). Any test or suite can be run against any
environment on demand — no configuration changes needed.