diff --git a/cypress/README.md b/cypress/README.md index deed92bde8..80a15351df 100644 --- a/cypress/README.md +++ b/cypress/README.md @@ -1,5 +1,6 @@ # Cypress Testing +Cypress tests are designed solely for end-to-end testing. If this is your first time developing or running end-to-end tests, [Fleet testing documentation](https://github.com/fleetdm/fleet/blob/main/docs/4-Contribution/2-Testing.md) includes git instructions for test preparation and running tests. ## Opening Cypress locally To open simply run: @@ -8,3 +9,18 @@ To open simply run: This will open up cypress locally and allow you to view the current test suite, as well as start writing new test. +## Bulding best practices + +As much as possible, build from a user's perspective. Use .within cypress command as needed to scope a command within a specific element (e.g. ,