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

(test) O3-2225 O3-2226: Add tests for cancel-patient-edit.component and delete-identifier-confirmation-modal #750

Merged
merged 6 commits into from Jul 12, 2023

Conversation

ayush-AI
Copy link
Contributor

@ayush-AI ayush-AI commented Jul 2, 2023

Requirements

Summary

In this PR I have added the tests for delete-identifier-confirmation-modal and cancel-patient-edit.component.

Screenshots

None.

Related Issue

https://issues.openmrs.org/browse/O3-2225
https://issues.openmrs.org/browse/O3-2226

Other

None.

Comment on lines 14 to 16
const { getByRole } = render(<CancelPatientEdit close={mockClose} onConfirm={mockOnConfirm} />);

const cancelButton = getByRole('button', { name: /Cancel/i });
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we do it like this?

Suggested change
const { getByRole } = render(<CancelPatientEdit close={mockClose} onConfirm={mockOnConfirm} />);
const cancelButton = getByRole('button', { name: /Cancel/i });
render(<CancelPatientEdit close={mockClose} onConfirm={mockOnConfirm} />);
const cancelButton = screen.getByRole('button', { name: /Cancel/i });

@ayush-AI ayush-AI requested a review from Piumal1999 July 5, 2023 07:59
@Piumal1999 Piumal1999 merged commit 88a04dc into openmrs:main Jul 12, 2023
6 of 7 checks passed
ayush-AI added a commit to ayush-AI/openmrs-esm-patient-management that referenced this pull request Jul 13, 2023
anjula-sack added a commit that referenced this pull request Jul 13, 2023
* added test for utils.ts

* resolved review commits

* (feat) Remove filtering todays queue entries on frontend (#752)

* (refactor): Display all active visits by removing filter for showing only today's active visits (#755)

* (refactor): changed  activeVisits.idNumber assignment for improved code robustness (#756)

* (feat) O3-2100: Unknown patient name and estimated DOB config (#697)

Co-authored-by: Vineet Sharma <sharmava05@gmail.com>

* (test) O3-2225/6: Add tests for cancel-patient-edit.component and delete-identifier-confirmation-modal (#750)

* removed the extra types

---------

Co-authored-by: Anjula Shanaka <anjulashanaka@gmail.com>
Co-authored-by: Dennis Kigen <kigen.work@gmail.com>
Co-authored-by: CynthiaKamau <cynthiakamau54@gmail.com>
Co-authored-by: Donald Kibet <chelashawdonald@yahoo.com>
Co-authored-by: Jexsie <jessiessebuliba@gmail.com>
Co-authored-by: Vineet Sharma <sharmava05@gmail.com>
ayush-AI added a commit to ayush-AI/openmrs-esm-patient-management that referenced this pull request Jul 13, 2023
ayush-AI added a commit to ayush-AI/openmrs-esm-patient-management that referenced this pull request Jul 13, 2023
* added test for utils.ts

* resolved review commits

* (feat) Remove filtering todays queue entries on frontend (openmrs#752)

* (refactor): Display all active visits by removing filter for showing only today's active visits (openmrs#755)

* (refactor): changed  activeVisits.idNumber assignment for improved code robustness (openmrs#756)

* (feat) O3-2100: Unknown patient name and estimated DOB config (openmrs#697)

Co-authored-by: Vineet Sharma <sharmava05@gmail.com>

* (test) O3-2225/6: Add tests for cancel-patient-edit.component and delete-identifier-confirmation-modal (openmrs#750)

* removed the extra types

---------

Co-authored-by: Anjula Shanaka <anjulashanaka@gmail.com>
Co-authored-by: Dennis Kigen <kigen.work@gmail.com>
Co-authored-by: CynthiaKamau <cynthiakamau54@gmail.com>
Co-authored-by: Donald Kibet <chelashawdonald@yahoo.com>
Co-authored-by: Jexsie <jessiessebuliba@gmail.com>
Co-authored-by: Vineet Sharma <sharmava05@gmail.com>
@ayush-AI ayush-AI deleted the O3-2225 branch August 1, 2023 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants