-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
---|---|---|---|
🟢 | Statements | 84.14% | 870/1034 |
🟡 | Branches | 65.01% | 223/343 |
🟡 | Functions | 75.58% | 164/217 |
🟢 | Lines | 84.18% | 809/961 |
Test suite run success
164 tests passing in 56 suites.
Report generated by 🧪jest coverage report action from 98dca62
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rylew1 tested locally, looks great.
(suggestion): The e23 tests now require the API to work, so we could update the docs in a separate ticket or just knock it out here: https://github.com/navapbc/simpler-grants-gov/blob/main/frontend/README.md#-end-to-end-e2e-testing
@acouch - updated docs - will need a reapproval |
@@ -144,7 +144,9 @@ To run E2E tests using VS Code: | |||
1. Download the VS Code extension described in these [Playwright docs](https://playwright.dev/docs/running-tests#run-tests-in-vs-code) | |||
2. Follow the [instructions](https://playwright.dev/docs/getting-started-vscode#running-tests) Playwright provides | |||
|
|||
In CI, the "Front-end Checks" workflow (`.github/workflows/ci-frontend.yml`) summary will include an "Artifacts" section where there is an attached "playwright-report". [Playwright docs](https://playwright.dev/docs/ci-intro#html-report) describe how to view HTML Report in more detail. | |||
Playwright E2E tests run "local-to-local", requiring both the frontend and the API to be running for the tests to pass - and for the database to be seeded with data. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the only new change after approval
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking of adding to the instructions:
+ - `cd ../api && make init db-seed-local start` (prerequisite to start the API)
- `npx playwright install --with-deps`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I saw the approval and merged very quickly - can open a small follow on
Fixes #2082 - add some of the relevant tests from bug bash
Summary
Fixes #37
Time to review: 10 min
Changes proposed
to run just search tests locally in ui:
npm run test:e2e:ui -- tests/e2e/search/search.spec.ts
Screen.Recording.2024-05-16.at.3.47.31.PM.mov