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

Introduce updated cypress test #3167

Merged
merged 101 commits into from
Sep 1, 2022
Merged

Introduce updated cypress test #3167

merged 101 commits into from
Sep 1, 2022

Conversation

rabilrbl
Copy link
Contributor

@rabilrbl rabilrbl commented Jul 19, 2022

Base #1804
Resolves #2601

Changes

  • Update to cypress 10
  • Introduce proper TS types in tests
  • Fix captcha issue on multiple login requests
  • Added API based login, improves testing speed

Setup

  • yarn install
  • Incase if post setup script on npm install fails.
    yarn cypress:install
  • Start dev server
    yarn start
  • Open cypress dashboard
    yarn cypress:open
  • From cypress 10 there is no way to run all spec test at once, hence each test should be triggered manually. Ref

Abhinandan Arya added 30 commits September 6, 2021 08:10
1. keeping examples for reference
2. consistent with code structure in `src`
but running them still pending
skipped it for some time
every folder will have its same name spec file denoting basic features of that page
for example: `assets.spec.js` in `assets_spec`
bug found `Cannot read property of undefined(res) in BoardView.tsx` to be fix
TypeError: Cannot read properties of undefined (reading 'data')
    at triggerDownload (BoardView.tsx:72)
TypeError: Cannot read properties of undefined (reading 'data')
    at triggerDownload (ResourceBoardView.tsx:61)
@nihal467
Copy link
Member

nihal467 commented Aug 25, 2022

@rabilrbl

image

  • the sample_test is not working properly

image

  • the shifting filters are not working properly

image

  • profile edit is not working

image

  • why does the death report is having the patient as undefined?

@rabilrbl
Copy link
Contributor Author

rabilrbl commented Aug 26, 2022

@nihal467
Errors

  • Sample_Test
  • Shifting Filter ( couldn't reproduce the error displayed, but fixed other errors found )
  • Profile Edit ( unable to reproduce all tests was successful )
    image
  • Death Report - The issue is caused by some component in front end, not cypress.

@nihal467
Copy link
Member

@rabilrbl

image

  • the shifting filters are not working properly, can you check it

image

  • the user_crud is malfunctioning, can you check it

@nihal467
Copy link
Member

test approved

@sonarcloud
Copy link

sonarcloud bot commented Sep 1, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot E 6 Security Hotspots
Code Smell A 7 Code Smells

No Coverage information No Coverage information
6.8% 6.8% Duplication

@khavinshankar khavinshankar merged commit d96bd98 into coronasafe:develop Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix Cypress
4 participants