-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
7300: Added developer documentation for getting end-to-end tests running. r=jmcameron a=jmcameron Co-authored-by: Jonathan Cameron <jmcameron@gmail.com>
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# End-to-end Tests | ||
|
||
BHIMA has a large collection of end-to-end tests using the [Playwright testing environment](https://playwright.dev/docs/intro). The following guidelines how to get the tests working in your environment. This description assumes that you have already set up BHIMA development environment (see [Installation](./installing-bhima.md)). | ||
|
||
1. Install Playwwright: | ||
```bash | ||
npm install playwright | ||
``` | ||
|
||
2. Verify that everything is consistent. The following commands should give the same version numbers: | ||
```bash | ||
grep 'playwright/test' yarn.lock # if you are using yarn | ||
grep 'playwright/test' package.json | ||
npx playwright --version | ||
``` | ||
|
||
3. Install browsers that Playwright requires | ||
```bash | ||
npx playwright install | ||
``` | ||
NOTE: If you upgrade your version of Playwright in your sandbox, you may need to run this command again to update the browsers for Playwright. | ||
|
||
4. Run the end-to-end tests (see `package.json` for the commands for this). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters