Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

[Issue #37]: finish e2e tests #38

Merged
merged 6 commits into from
May 22, 2024
Merged

[Issue #37]: finish e2e tests #38

merged 6 commits into from
May 22, 2024

Conversation

rylew1
Copy link
Collaborator

@rylew1 rylew1 commented May 16, 2024

Summary

Fixes #37

Time to review: 10 min

Changes proposed

  • add some of the relevant tests from bug bash

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

@rylew1 rylew1 requested review from andycochran and acouch as code owners May 16, 2024 22:47
@rylew1 rylew1 changed the title Rylew/37 finish e2e tests [Issue #37]: finish e2e tests May 16, 2024
Copy link

github-actions bot commented May 16, 2024

Coverage report for ./frontend

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

@rylew1 rylew1 requested a review from chouinar May 16, 2024 22:58
Copy link
Member

@acouch acouch left a 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

@rylew1
Copy link
Collaborator Author

rylew1 commented May 20, 2024

@acouch - updated docs - will need a reapproval

@github-actions github-actions bot added the documentation Improvements or additions to documentation label May 21, 2024
@rylew1 rylew1 requested a review from acouch May 21, 2024 00:52
@@ -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.
Copy link
Collaborator Author

@rylew1 rylew1 May 22, 2024

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

Copy link
Member

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`

Copy link
Collaborator Author

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

@rylew1 rylew1 merged commit 493fb4e into main May 22, 2024
11 checks passed
@rylew1 rylew1 deleted the rylew/37-finish-e2e-tests branch May 22, 2024 17:39
acouch pushed a commit that referenced this pull request Sep 18, 2024
Fixes HHS#2082

- add some of the relevant tests from bug bash
acouch pushed a commit that referenced this pull request Sep 18, 2024
Fixes HHS#2082

- add some of the relevant tests from bug bash
acouch pushed a commit to HHS/simpler-grants-gov that referenced this pull request Sep 18, 2024
Fixes #2082

- add some of the relevant tests from bug bash
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Improvements or additions to documentation frontend typescript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Task]: Finish e2e tests
2 participants