docs: Improve E2E test setup documentation #522
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Requirements
Summary
The existing documentation for setting up and running End-to-End (E2E) tests was minimal and often caused confusion for developers, particularly around:
Required environment variables
Steps to target either a local or remote backend
This PR enhances the E2E testing documentation in the main README.md by:
Providing clear, step-by-step instructions for configuring the Playwright E2E test environment
Introducing a new .env.example file that explains the purpose and usage of all required environment variables
Adding explicit instructions for running the tests against both a local backend and the dev3 remote server
Clarifying the exact commands needed to execute the tests
These improvements will streamline the developer workflow and make it easier to validate changes through E2E testing.
Screenshots
no UI changes
Related Issue
(Jira: O3-5071)(https://openmrs.atlassian.net/browse/O3-5071)
Other
This PR adds documentation for setting up and running the End-to-End (E2E) tests, as the instructions were missing from the README.md.
This standardizes the documentation to be consistent with other OpenMRS repositories, following the pattern established in openmrs/openmrs-esm-patient-management#2000.