This project contains end-to-end (E2E) tests for the OpenMRS 3.x Service Queues module using Playwright.
OpenMRS is an open-source platform that supplies users with a customizable electronic medical record system, widely used in healthcare settings around the world.
This repository (openmrs03) is focused on automated testing for the Service Queues feature in OpenMRS 3.x. It uses Playwright and the Page Object Model to ensure robust, maintainable, and scalable test coverage.
openmrs03/
├── fixtures/ # Test data and reusable fixtures
│ └── Logindetails.ts
├── pages/ # Page Object Model classes for UI pages
│ ├── BasePage.ts
│ ├── HomePage.ts
│ └── LoginPage.ts
├── tests/ # Playwright test specs
│ ├── auth.spec.ts
│ └── example.spec.ts
├── playwright.config.ts # Playwright configuration
├── package.json # Project dependencies and scripts
├── testplan.md # Manual test plan and scenarios
└── README.md # Project documentation
- Playwright: For browser automation and E2E testing
- TypeScript: For type-safe test and page object code
- GitHub Actions: For CI/CD and test reporting
The testplan.md file contains a comprehensive manual test plan for the Service Queues module. It outlines:
- Test case IDs and descriptions
- Preconditions and postconditions
- Step-by-step instructions
- Expected results for each scenario
This file serves as both a reference for manual testers and a blueprint for automated test coverage.
- Install dependencies:
npm install - Run all tests:
npx playwright test - View HTML report:
npx playwright show-report
- Test data is managed in
fixtures/Logindetails.ts. - Page objects are in the
pages/folder for maintainability. - Test results and reports are available in the
playwright-report/directory after each run. - The test plan in
testplan.mdhelps ensure all critical user journeys are covered.
Simple, effective, and easy to extend for new test cases.