Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Security Solution] Fixes
value_lists_items
tests on MKI (#182950)
## Summary On MKI environments, the `can CRUD value list items` inside `value_list_items` spec file is failing with the following error: ``` Expected to find content: 'Updated by: system_indices_superuse' within the element: <div.euiFlexGroup.css-1drqwgc-euiFlexGroup-responsive-l-flexStart-stretch-row> but never did. ``` <img width="2555" alt="Screenshot 2024-05-08 at 18 29 50" src="https://github.com/elastic/kibana/assets/17427073/66825a48-254c-46d7-ac24-3816a24e4827"> This is because as part of the test we are asserting the name of the user that interacted with the value list. The username value is hardcoded as `system_indices_superuser`, that user is value on the the ESS Elasticsearch and stateless elasticsearch but does not exist on MKI environments. In this test we are fixing that, by checking first if we are triggering the test for an MKI environment, and if so, set the username appropriately.
- Loading branch information