From d2d4f66438ee881fbdba1229bf270cef048f7828 Mon Sep 17 00:00:00 2001 From: Nehemiah Abuga Date: Wed, 22 Jan 2025 09:38:04 -0700 Subject: [PATCH 1/2] PXBF-1933-cypress-documantation-update: update README for cypress testing --- benefit-finder/README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/benefit-finder/README.md b/benefit-finder/README.md index 06613a03..b8dde336 100644 --- a/benefit-finder/README.md +++ b/benefit-finder/README.md @@ -304,12 +304,30 @@ function Value = ({ children }) => (
{children}
) #### **5. Testing** +# Vitest for unit/DOM testing + We use [Vitest](https://vitest.dev/) for Unit/DOM testing ```sh npm run test ``` +# Cypress for UI E2E Test + +## Commands + +### `cy:run:e2e` + +**Description:** +Runs the end-to-end (E2E) tests in the test environment using the Chrome browser. + +### `cy:run:prod:links:e2e` + +**Description:** +Runs the E2E tests using the production configuration for testing links, with the Chrome browser. + +For more information, refer to the [Cypress Documentation](https://docs.cypress.io). +
#### **6. Components** From 10dc1820e1f6ed2c2f8ff2f83eb301364240a473 Mon Sep 17 00:00:00 2001 From: Nehemiah Abuga Date: Wed, 22 Jan 2025 09:59:36 -0700 Subject: [PATCH 2/2] PXBF-1933-cypress-documantation-update: update README --- benefit-finder/README.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/benefit-finder/README.md b/benefit-finder/README.md index b8dde336..2be66bd2 100644 --- a/benefit-finder/README.md +++ b/benefit-finder/README.md @@ -304,7 +304,7 @@ function Value = ({ children }) => (
{children}
) #### **5. Testing** -# Vitest for unit/DOM testing +##### Vitest for unit/DOM testing We use [Vitest](https://vitest.dev/) for Unit/DOM testing @@ -312,16 +312,18 @@ We use [Vitest](https://vitest.dev/) for Unit/DOM testing npm run test ``` -# Cypress for UI E2E Test +##### Cypress for UI E2E Test -## Commands - -### `cy:run:e2e` +```bash +npm run cy:run:e2e +``` **Description:** Runs the end-to-end (E2E) tests in the test environment using the Chrome browser. -### `cy:run:prod:links:e2e` +```bash +npm run cy:run:prod:links:e2e +``` **Description:** Runs the E2E tests using the production configuration for testing links, with the Chrome browser.