epicweb-dev / full-stack-foundations

Learn the foundational skills of building full stack web applications.
https://epicweb.dev/workshops/full-stack-foundations
Other
599 stars 157 forks source link

After successful setup, tests fail because browsers are not installed #51

Closed gregdeane closed 1 year ago

gregdeane commented 1 year ago

Not sure if either of the issues below are actual bugs or if I've just missed mention of them in the documentation. Apologies if so!

Playwright not working out of the box

Note the successful setup and server start

Screenshot 2023-10-28 at 13 22 41

Note the test failure:

Screenshot 2023-10-28 at 13 22 59

Running the npx playwright install command as instructed solves the issue.

Playwright show-report not working.

npx playwright show-report fails. Note: I ran this command after fixing tests as mentioned above and running the tests successfully.

Screenshot 2023-10-28 at 13 23 29
kentcdodds commented 1 year ago

Hi @gregdeane,

Thanks for reporting this. I've fixed the installation issue. To see the report, you'll have to run npx playwright show-report from within the playground directory where the test has been run.