prisma-examples icon indicating copy to clipboard operation
prisma-examples copied to clipboard

End-to-End tests for fullstack examples

Open ruheni opened this issue 4 years ago • 5 comments

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

ruheni avatar Aug 09 '21 13:08 ruheni

Hi @ruheni I would like to help solve this issue for some of the examples. What is your opinion about using Cypress?

pshaddel avatar Aug 10 '21 17:08 pshaddel

Hey @pshaddel,

That's awesome! I would prefer Playwright because it doesn't require any configuration to run

ruheni avatar Aug 10 '21 17:08 ruheni

OK, I will start working on first full stack example. Wish me luck with my first contribution in Prisma world :)

pshaddel avatar Aug 10 '21 17:08 pshaddel

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.

pshaddel avatar Aug 10 '21 19:08 pshaddel

That's correct. It'll be just a single file with groups of tests 🙂

ruheni avatar Aug 10 '21 19:08 ruheni