RobinMeow / CommunityCookbook

CommunityCookbook
MIT License
0 stars 0 forks source link

cypress create recipe should delete it afterwards #99

Closed RobinMeow closed 5 months ago

RobinMeow commented 5 months ago

STRG F 'valid recipe title'

thing is, its e2e tests. I think it would be better to simply purge the database beforehand, and afterwards.

For this ofc I should write something thats seeds my database, which example data. It can be either done using faker.js and mongod in a node js app, or using a seperate console library in the back end, which can be dotnet run trigged which than in turn generates sample data.

RobinMeow commented 5 months ago

no it is best practise to clear or setup state before tests. what ever the state is after the tests ran is out side cypress intereset.

RobinMeow commented 5 months ago

just use a vscode task or a c# console application to clear and seed the db