Skip to content

Conversation

@billhimmelsbach
Copy link
Contributor

Draft release for e2e tests

shindigira and others added 30 commits October 21, 2024 12:23
…submit step before signing and certifying --> submitting
billhimmelsbach and others added 8 commits December 4, 2024 16:08
I'm really happy with where we are with our Playwright tests, so let's
get rid of the cypress tests to prevent those failures from letting us
have those sweet green check marks. ✅

Currently the cypress tests fail when running on commits on main due to
[a missing record
key](https://github.com/cfpb/sbl-frontend/actions/runs/12263581708/job/34215508209).
We don't need these tests anymore, and I think now is the time to get
rid of them.

<img width="1234" alt="Screenshot 2024-12-10 at 2 24 59 PM"
src="https://github.com/user-attachments/assets/db4ac511-17d4-4223-a6fb-24b12c04fac5">

Closes #992

- Removes cypress from deps, readme, package.json scripts, cache, and
removes the folder of test files

1. Does the website still build and work?

<img width="1109" alt="Screenshot 2024-12-10 at 2 22 04 PM"
src="https://github.com/user-attachments/assets/822aeaf6-e47e-46e0-8f01-748399b2a424">
Closes #1040 

## Changes
- Updated Dockerfile to use new
`ghcr.io/cfpb/regtech/sbl/node-js-alpine:3.20` (node 22) base image.
- Updated `package.json -> engines` to use Node v22
- Updated `.nvmrc` to use `v22`


## How to test this PR

1. Pull branch
2. `nvm use`
3. `yarn start` to easily launch all backend services
4. `yarn docker-build-and-run` to run the container version of the
Frontend
5. Update your `.env` file to run tests against the container version
   ```
   SBL_PLAYWRIGHT_TEST_TARGET="http://localhost:8085"
   ```
6. `yarn playwright test --workers 4`
7. Verify all tests pass
Fixes e2e tests and bumps deps:

Bumps the npm_and_yarn group with 5 updates:
Updates axios from 1.7.4 to 1.7.5
Updates vite from 4.5.3 to 4.5.5
Updates micromatch from 4.0.5 to 4.0.8
Updates path-to-regexp from 6.2.1 to 6.3.0
Updates rollup from 2.79.1 to 2.79.2
## Changes

- forces resolution to cross-spawn 7.0.5

## How to test this PR

1. Do all the tests pass?
![Screenshot 2025-03-10 at 6 29 24
PM](https://github.com/user-attachments/assets/85174d5c-8db5-453a-af86-4c6032455bc0)

3. How does the site behave after the dep bump?
![Screenshot 2025-03-10 at 6 29 42
PM](https://github.com/user-attachments/assets/937b4b5b-875d-4d63-acea-a34549987665)

![Screenshot 2025-03-10 at 6 28 54
PM](https://github.com/user-attachments/assets/8904f40d-86c0-4f1b-ab9e-d523192df41c)

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- update axios to 1.8.2
- update vite to 4.5.6
- update vite-plugin-pwa to 0.20.5 to update subdep rollup

1. Do all the tests pass?
![Screenshot 2025-03-11 at 11 49 29
AM](https://github.com/user-attachments/assets/c1874927-de79-40fd-aa87-5d9223b94715)
3. Does the website function normally?
![Screenshot 2025-03-11 at 11 51 26
AM](https://github.com/user-attachments/assets/cc49c14a-3d20-46be-98b3-077ddceb2287)

![Screenshot 2025-03-11 at 11 51 43
AM](https://github.com/user-attachments/assets/45350139-d2be-4a97-8bef-8bc076aea4d2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants