randila
(Randila Premarathne)
August 28, 2023, 8:50am
1
Overview
The project “Extending E2E Automated Tests for OpenMRS 3.0 RefApp” undertaken during the Google Summer of Code (GSoC) 2023 aimed to fortify the OpenMRS ecosystem by bolstering the End-to-End (E2E) testing capabilities of the OpenMRS 3.0 Reference Application (RefApp). This initiative sought to enhance the quality, reliability, and user experience of the RefApp by leveraging the Playwright automation framework in conjunction with the TypeScript programming language. The focal point of the project included intensifying testing for the openmrs-esm-patient-chart
and openmrs-esm-core
repositories.
Objectives
The primary objectives of the project “Extending E2E Automated Tests for OpenMRS 3.0 RefApp” were:
Setting up the patient chart repository — Complete
Write Allergies E2E tests — Complete
Write Vitals E2E test — Complete
Write Biometrics E2E test — Complete
Write Program E2E test — Complete
Write Conditions E2E test — Complete
Write Notes E2E test — Removed
Write Medication E2E test — Incomplete
Setting up the Core repository — Complete
Write Login and Logout E2E tests — Complete
Contributions
I worked on two repositories:
Issues:
https://issues.openmrs.org/browse/O3-2104?source=post_page-----7f283d733db2--------------------------------
Pull Requests:
openmrs:main
← RandilaP:O3-2107
opened 04:00PM - 09 Jun 23 UTC
## Requirements
- [x] My work conforms to the [OpenMRS 3.0 Styleguide](https:… //om.rs/styleguide) and [design documentation](https://zeroheight.com/23a080e38/p/880723-introduction).
- [x] 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](https://o3-dev.docs.openmrs.org/#/getting_started/contributing?id=your-pr-title-should-indicate-the-type-of-change-it-is) label. See existing PR titles for inspiration.
- [ ] My work includes tests or is validated by existing tests.
## Summary
This PR aims to write an E2E test for record allergies in the patient chart repository.
## Screenshots
<img width="1665" alt="image" src="https://github.com/openmrs/openmrs-esm-patient-chart/assets/106733522/2921e115-3450-44e9-8fe6-6aa50d223c17">
## Related Issue
https://issues.openmrs.org/browse/O3-2107
## Other
openmrs:main
← RandilaP:O3-2108
opened 03:56AM - 22 Jul 23 UTC
## Requirements
- [ ] This PR has a title that briefly describes the work don… e including the ticket number. If there is a ticket, make sure your PR title includes a [conventional commit](https://o3-dev.docs.openmrs.org/#/getting_started/contributing?id=your-pr-title-should-indicate-the-type-of-change-it-is) label. See existing PR titles for inspiration.
- [ ] My work conforms to the [OpenMRS 3.0 Styleguide](https://om.rs/styleguide) and [design documentation](https://zeroheight.com/23a080e38/p/880723-introduction).
- [ ] My work includes tests or is validated by existing tests.
## Summary
Goal of this PR is to add medication e2e tests. This e2e test covered the medication functionality with add, modify, discontinue and reorder medication e2e tests. It has some issues with loading the tables after save the form.
## Screenshots
## Related Issue
https://issues.openmrs.org/browse/O3-2108
## Other
openmrs:main
← RandilaP:2109
opened 07:21AM - 26 Jun 23 UTC
## Requirements
- [x] This PR has a title that briefly describes the work don… e including the ticket number. If there is a ticket, make sure your PR title includes a [conventional commit](https://o3-dev.docs.openmrs.org/#/getting_started/contributing?id=your-pr-title-should-indicate-the-type-of-change-it-is) label. See existing PR titles for inspiration.
- [ ] My work conforms to the [OpenMRS 3.0 Styleguide](https://om.rs/styleguide) and [design documentation](https://zeroheight.com/23a080e38/p/880723-introduction).
- [x] My work includes tests or is validated by existing tests.
## Summary
The goal of this PR is to add vitals and biometrics E2E tests to the patient chart repository.
There's a Page file and two spec files for separate e2e tests for the vitals e2e test and biometrics e2e test. Currently, biometrics e2e test is on draft because the biometrics table isn't loading as expected
## Screenshots
<img width="1680" alt="image" src="https://github.com/openmrs/openmrs-esm-patient-chart/assets/106733522/f521382b-b873-49b8-96e1-aef5b6b10f42">
## Related Issue
https://issues.openmrs.org/browse/O3-2109
## Other
openmrs:main
← RandilaP:fix-2107
opened 06:00AM - 22 Aug 23 UTC
## Requirements
- [ ] This PR has a title that briefly describes the work don… e including the ticket number. If there is a ticket, make sure your PR title includes a [conventional commit](https://o3-dev.docs.openmrs.org/#/getting_started/contributing?id=your-pr-title-should-indicate-the-type-of-change-it-is) label. See existing PR titles for inspiration.
- [ ] My work conforms to the [OpenMRS 3.0 Styleguide](https://om.rs/styleguide) and [design documentation](https://zeroheight.com/23a080e38/p/880723-introduction).
- [ ] My work includes tests or is validated by existing tests.
## Summary
- Goal of this PR is to fix the unexpected e2e tests that are occurring due to the locating same test results in tables.
## Screenshots
## Related Issue
https://issues.openmrs.org/browse/O3-2344
## Other
openmrs:main
← RandilaP:o3-2111
opened 04:55PM - 01 Jul 23 UTC
## Requirements
- [ ] This PR has a title that briefly describes the work don… e including the ticket number. If there is a ticket, make sure your PR title includes a [conventional commit](https://o3-dev.docs.openmrs.org/#/getting_started/contributing?id=your-pr-title-should-indicate-the-type-of-change-it-is) label. See existing PR titles for inspiration.
- [ ] My work conforms to the [OpenMRS 3.0 Styleguide](https://om.rs/styleguide) and [design documentation](https://zeroheight.com/23a080e38/p/880723-introduction).
- [ ] My work includes tests or is validated by existing tests.
## Summary
Goal of this PR is to add a e2e test of add program function.
## Screenshots
<img width="1680" alt="image" src="https://github.com/openmrs/openmrs-esm-patient-chart/assets/106733522/f2a2bc2c-b379-447f-b2f4-ba74e4abe15f">
## Related Issue
https://issues.openmrs.org/browse/O3-2111
## Other
openmrs:main
← RandilaP:o3-2110
opened 08:50AM - 24 Jul 23 UTC
## Requirements
- [ ] This PR has a title that briefly describes the work don… e including the ticket number. If there is a ticket, make sure your PR title includes a [conventional commit](https://o3-dev.docs.openmrs.org/#/getting_started/contributing?id=your-pr-title-should-indicate-the-type-of-change-it-is) label. See existing PR titles for inspiration.
- [ ] My work conforms to the [OpenMRS 3.0 Styleguide](https://om.rs/styleguide) and [design documentation](https://zeroheight.com/23a080e38/p/880723-introduction).
- [ ] My work includes tests or is validated by existing tests.
## Summary
The goal of this PR is to add conditions e2e tests to the repository. It has add, edit and delete conditions e2e tests.
## Screenshots
<img width="1290" alt="image" src="https://github.com/openmrs/openmrs-esm-patient-chart/assets/106733522/998bc3b6-9429-4f7a-aa16-85522b96c483">
## Related Issue
https://issues.openmrs.org/browse/O3-2110
## Other
openmrs:main
← RandilaP:o3-2112
opened 01:36PM - 03 Jul 23 UTC
## Requirements
- [ ] This PR has a title that briefly describes the work don… e including the ticket number. If there is a ticket, make sure your PR title includes a [conventional commit](https://o3-dev.docs.openmrs.org/#/getting_started/contributing?id=your-pr-title-should-indicate-the-type-of-change-it-is) label. See existing PR titles for inspiration.
- [ ] My work conforms to the [OpenMRS 3.0 Styleguide](https://om.rs/styleguide) and [design documentation](https://zeroheight.com/23a080e38/p/880723-introduction).
- [ ] My work includes tests or is validated by existing tests.
## Summary
Goal of this PR is to adding a add notes e2e test to patient chart repository
## Screenshots
## Related Issue
https://issues.openmrs.org/browse/O3-2112
## Other
openmrs:main
← RandilaP:o3-2113
opened 11:07AM - 31 Jul 23 UTC
## Requirements
- [x] 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](https://o3-dev.docs.openmrs.org/#/getting_started/contributing?id=your-pr-title-should-indicate-the-type-of-change-it-is) label. See existing PR titles for inspiration.
#### For changes to apps
- [x] My work conforms to the [**OpenMRS 3.0 Styleguide**](https://om.rs/styleguide) and [**design documentation**](https://zeroheight.com/23a080e38/p/880723-introduction).
#### If applicable
- [x] My work includes tests or is validated by existing tests.
- [ ] I have updated the [esm-framework mock](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-framework/mock.tsx) to reflect any API changes I have made.
## Summary
The Goal of this PR is to setup the core repository for E2E testing with playwright and add login and Logout E2E test
## Screenshots
<img width="1164" alt="image" src="https://github.com/openmrs/openmrs-esm-core/assets/106733522/02bbb633-432d-4b5c-a3d6-299b01a0878c">
## Related Issue
https://issues.openmrs.org/browse/O3-2113
## Other
Weekly Blog Posts
Hello everyone!
Reading time: 3 min read
Hey everyone,
Reading time: 3 min read
Hello everyone,
Reading time: 2 min read
Hello everyone,
Reading time: 2 min read
Resources
Video Presentation
Talk Thread
Hey everyone. For Extending E2E Automated Tests for the OpenMRS 3.0 RefApp project I have been selected for its implementation. I’ll be working with @anjisvj and @piumal1999 .
Description:
The Microfrontends Team has created a new Reference Application, the “3.0 RefApp ”, which represents the future of OpenMRS. It features a modern Microfrontend architecture and replaces the previous “2.x RefApp”. Students who excel in the end-to-end (E2E) testing of this project may also have the opportunity to…
Project Proposal
Google doc
Future Works
Looking ahead, there are some exciting possibilities for future work on the project. Right now, the main goal is to resolve the issues causing errors in the “Medication” E2E tests, which are related to server problems. Once these issues are sorted out, the plan is to merge the “Medication” E2E tests into the project, which is an important step. Additionally, there have been recent updates to the patient chart repository, which presents a great opportunity to create new E2E tests that cover these updates thoroughly. This aligns well with our goal of improving the quality and coverage of automated tests for the OpenMRS 3.0 RefApp.
Looking a bit further ahead, there’s also the potential to expand the E2E testing to other parts of the OpenMRS system. This would involve setting up the necessary testing environments, preparing the test suites, and creating comprehensive E2E tests for these other parts. Taking advantage of these opportunities for growth will have a positive impact on the OpenMRS community by making the RefApp more reliable and providing users with a better experience.
Thoughts on GSoC
Participating in GSoC 2023 has been an incredible learning experience for me. Over this period, I’ve gained valuable knowledge about new technologies and had the chance to work on real projects, similar to internships. This hands-on exposure has been invaluable for my growth as a developer. I’m truly grateful for the guidance and support my mentors provided throughout. They’ve been a great help in resolving challenges and expanding my skills. Looking forward, I’m excited about the possibility of continuing my contributions to open-source projects. I’m hopeful for the chance to participate in GSoC again, as it has been a fantastic platform for learning, personal development, and collaboration.
7 Likes