[Security Solution] Replace goToRuleDetails with goToTheRuleDetailsOf in e2e tests #164513
Labels
8.11 candidate
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
Summary
goToRuleDetails()
helper function is used in a number of tests and its functionality opens the first rule's details page. Opening the first rule in the rules table may lead to flaky behavior and generally make tests less explicit. UsinggoToTheRuleDetailsOf()
instead should better convey test expecations.Motivation
While working on flaky tests fix it has been noticed having higher deterministic test behavior helps reducing tests flakiness.
goToRuleDetails()
clicks on the first rule in the Rules Management table to open its details page and while it looks ok for a number of tests it may be a case non desired rule opened. If it happens in CI it's pretty hard to understand what's wrong and why the test failed. Also taking into account users distinguish rules by name and having two rules with exactly the same name is confusing for users we can rely on rule name uniqueness in tests. This way having tests expecting a concrete rule in the table to click on its name to open rule details page will make the tests behaving much more predictable.The text was updated successfully, but these errors were encountered: