[Question] How to run playwright tests with a Netlify setup
See original GitHub issueI saw that there is netlify-plugin-cypress
, but unfortunately no netlify-plugin-playwright
.
Netlify doesn’t seem to offer the user much configuration options for build
command through netlify.toml
.
I found https://github.com/microsoft/playwright-github-action, but then we would build the project on Netlify and GitHub, which is not efficient.
What is the recommended way to run playwright e2e test against a Netlify branch deploy?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:9 (5 by maintainers)
Top Results From Across the Web
The Beginner's Guide to End-to-End Testing with Deploy ...
You can create tests online with QA Wolf, then install our Netlify build plugin to run tests automatically on preview and production deploys....
Read more >A Beginners Guide To Netlify Testing | LambdaTest
In this article, learn the top industry-preferred methods to perform Netlify testing.
Read more >Automatically Run Visual Tests on Every Netlify Deploy
To start, locate to your site inside of Netlify and navigate to the Site Settings section. Once inside, select Build & deploy in...
Read more >Running Playwright Mocha tests in BuildWise CT Server
Fill in details for your new project (I am using the sample Playwright + Mocha one in the above guide's GitHub repo). Importantly,...
Read more >Testing GraphQL with Playwright | Katarzyna Kmiotek
REST API of course! Can I use Playwright for testing GraphQL endpoint? YES ! Keep reading to find out how easy it is....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks to both of you for the great support and fast answers! Setup is up and running now 😉
This should work with Netlify out of the box: https://playwright.dev/docs/ci#github-actions-on-deployment
It will trigger the GitHub Action once the Netlify deployment has finished and passes the baseURL over to the Playwright Test Runner to run the tests on.