infoderm / patients

:face_with_thermometer: Patients meteor app
GNU Affero General Public License v3.0
5 stars 2 forks source link

Speed-up full-app tests by seeding the database #978

Open make-github-pseudonymous-again opened 4 months ago

make-github-pseudonymous-again commented 4 months ago

This should be possible via a dedicated route (on top of _dev/reset). This should allow to avoid testing multiple times common functionality (registration, login, navigation, etc.) in end-to-end tests.

Maybe one could create dependencies between tests and snapshot the database state of a previous test to be used as the initial state for dependent tests.

make-github-pseudonymous-again commented 2 months ago

Note that registration/login can already be sped-up by replacing UI interaction with direct endpoint calls.