microsoft / playwright-test

Build a cross-browser end-to-end test suite with Playwright.
https://playwright.dev
Apache License 2.0
777 stars 34 forks source link

e2e test server #10

Closed JoelEinbinder closed 4 years ago

JoelEinbinder commented 4 years ago

Right now e2e tests require users to set up their own server to serve their website, and we treat it as a black box. It would be nice if we had a default solution that did something useful. We should also have a way to integrate with their existing server.

If we don't treat the server as a black box, we can do a lot of cool features like:

The integration would be in the form of a function that takes a localhost url and returns the path to the file on disk which it maps to.