Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add end-to-end frontend testing using Cypress #847

Merged
merged 73 commits into from Jan 20, 2021
Merged

Add end-to-end frontend testing using Cypress #847

merged 73 commits into from Jan 20, 2021

Conversation

adelavega
Copy link
Collaborator

@adelavega adelavega commented Nov 21, 2020

  • Add comprehensive end-to-end frontend tests using Cypress
  • Added to GH Actions
  • Updated README to describe how to run tests locally using a development server / test database.

@adelavega
Copy link
Collaborator Author

These changes should allow for cypress to be run in headless mode, but to run in interactive mode, you need to run ./node_modules/.bin/cypress install to install cypress locally.

@codecov-io
Copy link

codecov-io commented Nov 21, 2020

Codecov Report

Merging #847 (60adf17) into master (796f12d) will decrease coverage by 0.05%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #847      +/-   ##
==========================================
- Coverage   84.68%   84.62%   -0.06%     
==========================================
  Files          57       57              
  Lines        2827     2829       +2     
==========================================
  Hits         2394     2394              
- Misses        433      435       +2     
Impacted Files Coverage Δ
neuroscout/config/example_app.py 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 796f12d...60adf17. Read the comment docs.

@cypress
Copy link

cypress bot commented Dec 4, 2020



Test summary

7 0 0 0


Run details

Project Neuroscout
Status Passed
Commit 570551d
Started Jan 20, 2021 12:08 AM
Ended Jan 20, 2021 12:09 AM
Duration 00:42 💡
OS Linux Ubuntu - 18.04
Browser Electron 87

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@cypress
Copy link

cypress bot commented Dec 4, 2020



Test summary

7 0 0 0


Run details

Project Neuroscout
Status Passed
Commit 0e32f17 ℹ️
Started Jan 20, 2021 12:08 AM
Ended Jan 20, 2021 12:09 AM
Duration 00:43 💡
OS Linux Ubuntu - 18.04
Browser Electron 87

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@adelavega
Copy link
Collaborator Author

adelavega commented Dec 16, 2020

Things left to do:

  • Finish Report tab API stub
  • Avoid calling by class name in tests if possible
  • Add comments to tests
  • Avoid using visible tag if possible
  • @rwblair review my tests

For future test coverage:

  • OAuth2 tests?
  • Test Analysis Browser (public/private)
  • Test Predictor Upload

@adelavega
Copy link
Collaborator Author

Merge master and test all is working as well

@adelavega adelavega changed the title Cypress Add frontend test using Cypress Jan 20, 2021
@adelavega adelavega changed the title Add frontend test using Cypress Add end-to-end frontend testing using Cypress Jan 20, 2021
@adelavega adelavega merged commit f630dad into master Jan 20, 2021
@adelavega adelavega deleted the cypress branch January 20, 2021 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants