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-2936 : add e2e tests for edit and delete vitals and biometrics #1914

Conversation

senthil-athiban
Copy link
Contributor

@senthil-athiban senthil-athiban commented Jul 15, 2024

Requirements

  • This PR has a title that briefly describes the work done including the ticket number. If there is a ticket, make sure your PR title includes a conventional commit label. See existing PR titles for inspiration.
  • My work conforms to the OpenMRS 3.0 Styleguide and design documentation.
  • My work includes tests or is validated by existing tests.

Summary

End-to-End tests for editing and deleting vitals.

Related Issue

O3-2936

@senthil-athiban senthil-athiban changed the title (test): add e2e for edit and delete vitals (test): add e2e for edit and delete vitals and biometrics Jul 15, 2024
@senthil-athiban senthil-athiban marked this pull request as ready for review July 15, 2024 13:57
@senthil-athiban senthil-athiban marked this pull request as draft July 15, 2024 14:34
@senthil-athiban senthil-athiban marked this pull request as ready for review July 15, 2024 18:37
@senthil-athiban senthil-athiban changed the title (test): add e2e for edit and delete vitals and biometrics (test): add e2e tests for edit and delete vitals and biometrics Jul 15, 2024
@senthil-athiban senthil-athiban changed the title (test): add e2e tests for edit and delete vitals and biometrics (test) O3-2936 : add e2e tests for edit and delete vitals and biometrics Jul 19, 2024
@brandones
Copy link
Contributor

@senthil-athiban Please fix the merge conflicts.

Sorry about the delay with a review. I have requested a review from @kdaud (or @jayasanka-sack if Daud cannot).

Copy link
Member

@kdaud kdaud left a comment

Choose a reason for hiding this comment

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

Thanks @senthil-athiban. I've left few comments for you to address.

await expect(biometricsPage.page.getByText(/Edit vitals and biometrics/i)).toBeVisible();
});

await test.step('And I change the `Weight`', async () => {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
await test.step('And I change the `Weight`', async () => {
await test.step('When I change the weight to `70`', async () => {

Copy link
Member

Choose a reason for hiding this comment

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

Let's consider revising at least two biometrics.

await expect(vitalsPage.page.getByText(/Edit vitals and biometrics/i)).toBeVisible();
});

await test.step('And I change the `Temperature`', async () => {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
await test.step('And I change the `Temperature`', async () => {
await test.step('When I change the temperature to `42`', async () => {

Copy link
Member

Choose a reason for hiding this comment

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

Let's consider revising at least two vitals.

@kdaud
Copy link
Member

kdaud commented Sep 16, 2024

@senthil-athiban fix the failing build.

@brandones
Copy link
Contributor

Ping @senthil-athiban

@senthil-athiban
Copy link
Contributor Author

@brandones as we have reverted the edit and delete feature for vitals and biometrics, can we close this one.?

@brandones brandones closed this Oct 10, 2024
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.

3 participants