Skip to content

Commit

Permalink
Merge pull request #1081 from City-of-Helsinki/UHF-10588
Browse files Browse the repository at this point in the history
UHF-10588: Update calculator testing documentation
  • Loading branch information
teroelonen authored Oct 11, 2024
2 parents 5f99028 + ec4cc4c commit f637282
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
16 changes: 13 additions & 3 deletions src/js/calculator/helsinki_benefit_amount_estimate/tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

Needed:

* node installed, tested to be working with at least v18
* node installed
* optionally, a display and a OS with GUI for headed tests

To install playwright and it's dependencies:

```
npm install
nvm use && npm install
npm run test:install
```

Expand Down Expand Up @@ -38,4 +38,14 @@ Run tests line-by-line:
npm run test:debug
```

---
---

## To run manual tests on local

* Start a local server on **drupal-hdbt/**, for instance `npx http-server -p 3001`
* Open http://localhost:3001/src/js/calculator/helsinki_benefit_amount_estimate/helsinki-benefit-test.html on your browser.

## To run automatic browser tests
This requires test dependencies to be installed

`cd src/js/calculator/helsinki_benefit_amount_estimate/tests && npm run test`

0 comments on commit f637282

Please sign in to comment.