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

Johanna/6593 fix add patient test execution time #6643

Merged

Conversation

johanna-skylight
Copy link
Contributor

@johanna-skylight johanna-skylight commented Sep 26, 2023

FRONTEND PULL REQUEST

Related Issue

Changes Proposed

  • Use fireEvent in the fill out form method as this is just a pre-step for the actual unit testing and there is no critical need to mock a user's interaction.
  • Break down the AddPatient unit testing into multiple files as this is the only way that jest can run them in parallel.
  • Refactor the QueueItem unit tests to remove the manual pauses using timesouts and check updates in the UI as cues of user actions properly processed.

Testing

All unit testing should pass.

@johanna-skylight johanna-skylight marked this pull request as ready for review September 27, 2023 14:44
BobanL
BobanL previously approved these changes Sep 27, 2023
fzhao99
fzhao99 previously approved these changes Sep 27, 2023
Copy link
Contributor

@fzhao99 fzhao99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you for the hard work on this! super smart to use the faster fireEvent and to group things the way you did. Will definitely bookmark for future reference 💪

@johanna-skylight johanna-skylight dismissed stale reviews from fzhao99 and BobanL via 1209f06 September 27, 2023 20:22
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

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

84.4% 84.4% Coverage
0.0% 0.0% Duplication

@johanna-skylight
Copy link
Contributor Author

johanna-skylight commented Sep 28, 2023

I had to resolved a merge conflicts. I need re-approvals please and thanks!

@johanna-skylight johanna-skylight added this pull request to the merge queue Sep 28, 2023
Merged via the queue into main with commit 42b3be3 Sep 28, 2023
@johanna-skylight johanna-skylight deleted the johanna/6593_fix_add_patient_test_execution_time branch September 28, 2023 14:52
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.

Troubleshoot and fix AddPatient.test.tsx that is taking 28s to complete
3 participants