Running the app
Your task
๐จโ๐ผ It's time for us to start testing our app! But there's a couple of things you have to do before that.
๐จ First, let's make sure that Playwright runs your application before it runs your tests. Head to
and follow the instructions to configure the
webServer property in Playwright's configuration.๐จ Now that
webServer is configured, it's time to write some tests! Let's start from testing the homepage of the app. I've already got a test file prepared for you at . Open that file and write a test case there.
Once you're done, make sure that the added test is passing by running the
npm test command in your terminal.