Skip to content

Commit

Permalink
add cypress testing to TESTING.md
Browse files Browse the repository at this point in the history
  • Loading branch information
szilvia-csernus committed Apr 19, 2024
1 parent 924cdfa commit 0363e9e
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,32 @@ Results:

# End-to-end Integration Tests

> Not implemented yet.
> E2E Integration tests are implemented with Cypress.
To run the tests locally:

* run the backend server with `python manage.py runserver` in the backend folder,

* start the vite dev server in the frontend with `npm start` in the frontend folder,

* finally, run the Cypress test with: `npx cypress open`.



This will open up a new browser for Cypress, where we can start the test files and witness the process.

Alternatively, we can run it with a headless server, with: `npx cypress run`.

The results of these tests are shown below:

![Cypress About Page](testing-images/cypress-about.jpeg)
![Cypress Adopt Page](testing-images/cypress-adopt.jpeg)
![Cypress Contact Us Page](testing-images/cypress-contact-us.jpeg)
![Cypress Enquiry Form](testing-images/cypress-enquiry.jpeg)
![Cypress Volunteer Form](testing-images/cypress-volunteer.jpeg)
![Cypress Results](testing-images/cypress-results.jpeg)




# Accessibility tests
Expand Down
Binary file added testing-images/cypress-about.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testing-images/cypress-adopt.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testing-images/cypress-contact-us.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testing-images/cypress-enquiry.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testing-images/cypress-results.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testing-images/cypress-volunteer.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0363e9e

Please sign in to comment.