End-to-End tests for fullstack examples
Add end-to-end tests using Playwright, preferably for fullstack examples.
This would boost our confidence in the applications.
- Let's save the test inside https://github.com/prisma/prisma-examples/tree/latest/.github/tests. You can create a new folder called e2e and call the file
test.spec.ts(just a suggestion) - Once the test is ready, update the relevant bash scripts in https://github.com/prisma/prisma-examples/tree/latest/.github/tests/javascript and https://github.com/prisma/prisma-examples/tree/latest/.github/tests/typescript by adding the command to run the script
npx playwright test __PATH_TO_TEST_/test.spec.ts
Hi @ruheni I would like to help solve this issue for some of the examples. What is your opinion about using Cypress?
Hey @pshaddel,
That's awesome! I would prefer Playwright because it doesn't require any configuration to run
OK, I will start working on first full stack example. Wish me luck with my first contribution in Prisma world :)
Thanks for the heads up. I took a look at the documentation of playwright. I think we are going to use @playwright/test and we are not going to use third parties like jest or jasmine.
That's correct. It'll be just a single file with groups of tests 🙂