ReferenceIntegrations
Netlify
Reference for the Endform Netlify extension, how it runs your suite on every Deploy Preview, and project configuration.
The Endform Netlify extension runs your Playwright suite on Endform immediately after Netlify publishes a Deploy Preview, without a separate CI workflow.
For step-by-step installation, see Test Netlify Deploy Previews. To try it without your own project, deploy the demo repository to Netlify: it works as is.
Requirements
- You're an owner or admin of the Endform organization you connect the extension to.
- The Netlify project builds from a Git repository with Playwright tests, and
@playwright/testis listed in thepackage.jsonof its base directory. - Your Deploy Previews are reachable by Endform's browsers. Your Netlify team's default can make new projects private. See Private and password-protected Deploy Previews.
- For pull request checks, the Endform GitHub App is installed on the repository.
How the extension works
When you click Configure project on a Netlify project's Endform extension page, Endform creates a dedicated per-project API key and stores it inside the extension's private project configuration (not in your project's build environment variables).
On every Deploy Preview build:
- Build starts: If the Endform GitHub App is installed on the repository, Endform creates a GitHub check named Endform (
<your-project-name>) in the queued state. - Deploy Preview publishes: Once Netlify finishes publishing the preview, the extension runs your Playwright suite on Endform with
BASE_URLset to the preview URL and updates the GitHub check to running. - Suite completes: The Netlify deploy log prints the run summary and dashboard report link, and the GitHub check completes as passed or failed with the same link.
If the Netlify build itself fails, the GitHub check is marked as skipped because there is no preview to test.
Scope and lifecycle details
- Deploy Previews only: The extension runs tests only on Deploy Previews, not on production deploys or branch deploys.
- Non-blocking Netlify deploy: A failing test run appears as a warning in the Netlify deploy log and does not fail the Netlify deploy. To block pull request merges on failures, mark the Endform (
<your-project-name>) check as required in your GitHub branch protection rules. - Monorepos and multiple projects: Each Netlify project reports its own check named Endform (
<your-project-name>), so multiple Netlify projects building the same repository do not overwrite each other. - Automatic key revocation: Disconnecting a project revokes its key. Uninstalling the extension revokes keys for every configured project in the Netlify team.
Project settings
- Playwright config path: Leave Playwright config path empty to let Endform detect
playwright.config.tsin the project's base directory or one of its parents. If your suite lives in a subfolder, set it to the config file or the directory that contains it, relative to the base directory (such ase2eore2e/playwright.config.ts). @playwright/testlocation: The extension invokes Endform from your Netlify project's base directory using the dependencies installed by the Netlify build.- Environment variables for tests: Add any credentials or secrets your tests read to your Netlify project's environment variables scoped to Deploy Previews. Variables prefixed with
E2E_, and variables your tests read throughprocess.env, are sent to Endform's runners automatically. If Netlify's secrets scan flags one, see the FAQ.
Your configured Netlify projects are listed under Settings → Integrations in the Endform dashboard, with their repository and when each was last used.
Sub-pages
- Private and password-protected Deploy Previews: let your tests reach Deploy Previews that Netlify protects.
- Frequently asked questions: missing GitHub checks,
401 Unauthorizedresponses, the secrets scan, and blocking merges.
Related pages
Last updated