Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.11] [Controls] Fix flaky a11y test (#169559) #170771

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.11:

Questions ?

Please refer to the Backport tool documentation

Closes elastic#169542

## Summary

For some reason, the search session popover was being opened, which
blocked the controls button from being clickable:

![image](https://github.com/elastic/kibana/assets/8698078/6882e67e-6f17-4820-8e71-14e84c3d04c2)

I'm unsure why this popover is open to begin with; this should **only**
happen when the `searchSessionIndicator` button is clicked, but this
button is **not** interacted with in **any** of the accessibility tests
(that I could find). This makes me suspicious that this is actually a
**misclick** - i.e. the element that was meant to be clicked gets moved
(possibly the Dashboard "edit" button?), which causes the
`searchSessionIndicator` button to be clicked instead.

Going off this theory, I've switched the controls `a11y` tests to use
the Dashboard page's methods (which have more safeguards in place) to
navigate to the desired dashboard rather than clicking elements solely
based off of the `data-test-subj` like we were previously.

### [Flaky Test
Runner](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/3686)

![image](https://github.com/elastic/kibana/assets/8698078/74fb0d27-9cb2-4650-ba91-97865a3bd962)

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

(cherry picked from commit ad932ec)
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @Heenawter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants