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

Troubleshoot and fix AddPatient.test.tsx that is taking 28s to complete #6593

Closed
johanna-skylight opened this issue Sep 21, 2023 · 0 comments · Fixed by #6643
Closed

Troubleshoot and fix AddPatient.test.tsx that is taking 28s to complete #6593

johanna-skylight opened this issue Sep 21, 2023 · 0 comments · Fixed by #6643
Assignees

Comments

@johanna-skylight
Copy link
Contributor

Background

The test file src/app/patients/AddPatient.test.tsx is taking 28 seconds to complete. A possible reason is that the fillOutForm tasks that depends in multiple awaits is taking long. The fillOutForm method is used in almost all the test cases making the delay to grow exponentially.

Action requested

Confirm if the fillOutForm is the root case of the test file taking so long or find the real issue.
Refactor the code to execute the test cases in a more optimized way.

Acceptance Criteria

The test file should execute with better timing keeping it under 5 seconds should be ideal.

Additional context

If there is no possible way to improve the execution maybe splitting the test cases in multiple files so they execute in parallel could help.

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 a pull request may close this issue.

3 participants