-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Griffin-Sullivan <[email protected]>
- Loading branch information
1 parent
499b9d4
commit e9fbf26
Showing
19 changed files
with
12,264 additions
and
6,557 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Test against prod build hosted by lightweight http server | ||
BASE_URL=http://localhost:9001 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,36 @@ | ||
# Model Registry UI Testing | ||
|
||
[TBD] | ||
## Cypress Tests | ||
|
||
Cypress is used to run tests against the frontend while mocking all network requests. | ||
|
||
Single command to run all Cypress tests or a specific test (build frontend, start HTTP server, run Cypress): | ||
|
||
```bash | ||
npm run test:cypress-ci | ||
|
||
npm run test:cypress-ci -- --spec "**/testfile.cy.ts" | ||
``` | ||
|
||
Cypress tests require a frontend server to be running. | ||
|
||
To best match production, build the frontend and use a lightweight HTTP server to host the files. This method will require manual rebuilds when changes are made to the dashboard frontend code. | ||
|
||
```bash | ||
npm run cypress:server:build | ||
npm run cypress:server | ||
``` | ||
|
||
To run all Cypress tests or a specific test headless | ||
|
||
```bash | ||
npm run cypress:run:mock | ||
|
||
npm run cypress:run:mock -- --spec "**/testfile.cy.ts" | ||
``` | ||
|
||
To open the Cypress GUI run | ||
|
||
```bash | ||
npm run cypress:open:mock | ||
``` |
Oops, something went wrong.