Skip to content

Testing

Mandi Haase edited this page May 28, 2020 · 4 revisions

Testing in Allay

Allay currently uses the third party testing library cypress.io.

We chose cypress for its flexibility and ease of use. Cypress has amazing UI tools that lets us see our tests running in real time, which relieves a lot of headaches.

Installation

  • Firstly, have Allay running locally on localhost:3000
  • Open the cypress testing software by typing npm run cy:open in your terminal
  • Once the cypress software opens you will be able to run individual tests or all tests at once.

Updating Code Climate

  • Type npm run cypress:coverage in your terminal. This will take a long time to run!

/integration

admin_bind_button_test.js

This test verifies that an admin can bind a user. This test is currently passing.

admin_delete_button_test.js

This test verifies that an admin can delete content posted by a user. This test is currently passing.

admin_login_test.js

This test verifies that an admin can successfully log in. This test is currently passing.

company_review_test.js

This test verifies that a user can create and submit a company review. This test is currently passing.

createInterviewReview_test.js

This test verifies that a user can successfully create an interview review. This test is currently passing.

delete_test.js

This test verifies that a user can delete a review they have posted. This test is currently passing.

editInterview_test.js

This test verifies that a user can edit their interview review. This test is currently passing because problem testing portion has ben commented out because the EditInterviewForm.js component does not work.

editReview_test.js

This test verifies that a user can edit their company review. This test is currently passing because problem testing portion has ben commented out because the EditReviewForm.js component does not work.

login_test.js

This test verifies that a user can successfully log in. This test is currently passing.

logout_test.js

This test verifies that a user can successfully log out. This test is currently passing.

registration_test.js

This test verifies that a new user can successfully fill out the Signup.js and Signup-Additional.js forms. It is currently passing but before it is run each time a new test user name, last name and email must be entered in the test.

sample_test.js

This test is a template to show how to test for this application. This test is currently passing.

searchBar_test.js

This test verifies that no reviews are returned on an unsuccessful search. This test is currently passing but should be refactored to be more accurate.

userProfileAndEdit_test.js

This test verifies that a user can update their profile. This test is currently passing.

Clone this wiki locally