Running the app
Alright, so you've got your first end-to-end test written, but it doesn't bring you much value yet (well, because Epic Web isn't the app you want to test!). Now is the time we change that.
Your task
👨💼 Now is your turn to start testing your app. But before you do that, you need to make sure Playwright runs it before your tests so they have something to interact with.
🐨 First, head to
and follow the instructions to configure the
webServer property in Playwright's configuration. You will use that option to tell Playwright how to spawn your application.🐨 Next, once
webServer is configured, write a simple test for the homepage at . It will be quite similar to the test you've written in the previous exercise, but now interacting and asserting directly on your application.
And, of course, verify your solution by running the tests (
npm run test:e2e) and seeing them pass.