[Security Solution] Document best practices for writing Cypress tests #153662
Labels
documentation
Team:Detection Rule Management
Security Detection Rule Management Team
Team:Detections and Resp
Security Detection Response Team
Team: SecuritySolution
Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc.
technical debt
Improvement of the software architecture and operational architecture
test_ui_functional
test
Epic: #153633
Summary
Write developer docs on the subject. Put them in https://github.com/elastic/security-team/tree/main/docs.
When writing the docs, let's think about and address the following concerns:
Notes
Some best practices are already documented in kibana/x-pack/plugins/security_solution/cypress/README.md. We'll need to either add more practices to this doc or extract them into a separate document. The latter could live under
security_solution/docs/testing
or something like that, or be moved to https://github.com/elastic/security-team/tree/main/docs if it will contain any internal information.I believe we'll need to come up with both general best practices (e.g. can be "cleanup should be done in before/beforeEach instead of after/afterEach blocks") and domain-specific best practices (e.g. can be "fleet packages should be installed only in a very limited number of tests"). We could share the general ones across AET in a common document, and keep the domain-specific practices in separate documents.
The text was updated successfully, but these errors were encountered: