-
-
Notifications
You must be signed in to change notification settings - Fork 421
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into chore/fix-up-firebase-emulator
- Loading branch information
Showing
45 changed files
with
840 additions
and
658 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,23 @@ | ||
# Taken from https://www.chromatic.com/docs/github-actions/ | ||
|
||
name: "Chromatic" | ||
|
||
on: push | ||
|
||
jobs: | ||
chromatic: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Run Chromatic | ||
uses: chromaui/action@latest | ||
with: | ||
# ⚠️ Make sure to configure a `CHROMATIC_PROJECT_TOKEN` repository secret | ||
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} |
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
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
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,43 @@ | ||
## Cypress | ||
|
||
[Cypress](https://www.cypress.io/) is a next generation front end testing tool built for the modern web. We address the key pain points developers and QA engineers face when testing modern applications. | ||
|
||
[Best practices to be followed](https://docs.cypress.io/guides/references/best-practices) | ||
|
||
### Folder Structure | ||
|
||
- `scripts`: Contains scripts necessary to run the tests. | ||
- `paths.ts`: Stores all the paths needed to execute the tests. | ||
- `start.ts`: Script to automate the process of running end-to-end (E2E) tests using Cypress CI and Manual | ||
- `src`: Contains the source code for the Cypress project. | ||
- `data`: Holds index.ts which is responsible for managing data. | ||
- `fixtures`: Stores data, images, and files used in the tests. | ||
- `integration`: Contains spec.ts files which hold the actual test scripts. | ||
- `plugins`: Contains Cypress plugins. | ||
- `support`: Contains support files for Cypress tests. | ||
- `db`: database scripts related(seed, clear, query, delete) | ||
- `commands.ts`: Defines general custom Cypress commands. | ||
- `commandsUI.ts`: Defines UI-related custom Cypress commands. | ||
- `customAssertions.ts`: Contains custom Cypress assertions. | ||
- `hooks.ts`: Defines Cypress hooks. | ||
- `index.ts`: Index file for exporting all plugins. | ||
- `rules.ts`: Contains rules for Cypress. | ||
- `utils`: Holds utility functions for the Cypress project. | ||
|
||
### Test data SEED | ||
|
||
The seed data is maintained in the `/shared/mocks/data directory`. | ||
|
||
### How Tests Run | ||
|
||
- Before All: Set up the DB_PREFIX and DB seed. | ||
- Before Each (Global): Set the DB_PREFIX variable on the platform session storage. | ||
- Before Each (Local): Perform pre-set actions for the scenario. | ||
- Main Section of Test: Steps according to the scenario. | ||
- Assert Section of Test: Validation to the scenario. | ||
|
||
### Execution Steps | ||
|
||
Running Cypress E2E Tests | ||
|
||
`yarn test` to start local environment and open the cypress UI |
Oops, something went wrong.