forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Security Solution][Explore] Fixes failing test in MKI environments (e…
…lastic#186116) Fix: elastic#179231 ##Summary When we changed the default role used in Cypress from `admin` to `platform_engineer`, the `x-pack/test/security_solution_cypress/cypress/e2e/explore/cases/creation.cy.ts` test started to fail in MKI environments. The test was failing in both assertions for MKI environments: cy.get(CASE_DETAILS_USERNAMES).eq(REPORTER).should('contain', username); cy.get(CASE_DETAILS_USERNAMES).eq(PARTICIPANTS).should('contain', username); This was happening because we were hardcoding the username and this is a thing we should not be doing anymore since we are making the test prone to failures. In this PR we are fixing that behavior by using a method that retrieves the correct value.
- Loading branch information
1 parent
bbafad4
commit 8ada1ac
Showing
4 changed files
with
43 additions
and
8 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