-
Notifications
You must be signed in to change notification settings - Fork 523
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into encounter-notes
- Loading branch information
Showing
300 changed files
with
977 additions
and
40,248 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
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,30 @@ | ||
# Cypress Guidelines | ||
|
||
## Core Principles | ||
|
||
- Create, use and modify Reusable Commands and Functions for Cypress as needed | ||
- Provide Id for the elements using data-cy attributes | ||
- When interacting with a button, verify the button is enabled and visible before interacting with it | ||
- when interacting with a button,verify the text of the button is correct | ||
- Use Page Object Model for Cypress | ||
- Use built-in assertions for Cypress | ||
- Use beforeEach, afterEach and all relevant hooks for Cypress on every test file | ||
|
||
## Storage Management | ||
|
||
- Use cy.saveLocalStorage() and cy.restoreLocalStorage() for Cypress | ||
- If we are using same element id to verify presence, interact and assert, make a reusable structure for it | ||
|
||
## API Testing | ||
|
||
- Use cy.intercept() for Cypress to verify API calls | ||
- Use waitUntil() for Cypress to wait for API calls to complete | ||
- Never use cy.wait() for Cypress except for API responses | ||
|
||
## Best Practices | ||
|
||
- Keep tests independent and isolated | ||
- Use meaningful test descriptions | ||
- Follow AAA pattern (Arrange, Act, Assert) | ||
- Use fixtures for test data | ||
- Implement custom commands for repetitive actions |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.