question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Question] How to run playwright tests with a Netlify setup

See original GitHub issue

I 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mcmxcdevcommented, Nov 3, 2021

Thanks to both of you for the great support and fast answers! Setup is up and running now 😉

1reaction
mxschmittcommented, Nov 2, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found