mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
# Backport This will backport the following commits from `main` to `9.0`: - [[Console] Fix a11y overlay test (#218130)](https://github.com/elastic/kibana/pull/218130) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Elena Stoeva","email":"59341489+ElenaStoeva@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-04-15T09:07:06Z","message":"[Console] Fix a11y overlay test (#218130)\n\nFixes https://github.com/elastic/kibana/issues/217057\n\n## Summary\n\nThis PR fixes the flaky test for the a11y overlay by adding a `retry`\nand allowing more time for the overlay element to be detected.\n\nFlaky test runner build:\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8176","sha":"d5bceb79d06d6688e7d7968be1ae71c6bf13e142","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Console","Team:Kibana Management","release_note:skip","backport:prev-minor","v9.1.0","v8.19.0"],"title":"[Console] Fix a11y overlay test","number":218130,"url":"https://github.com/elastic/kibana/pull/218130","mergeCommit":{"message":"[Console] Fix a11y overlay test (#218130)\n\nFixes https://github.com/elastic/kibana/issues/217057\n\n## Summary\n\nThis PR fixes the flaky test for the a11y overlay by adding a `retry`\nand allowing more time for the overlay element to be detected.\n\nFlaky test runner build:\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8176","sha":"d5bceb79d06d6688e7d7968be1ae71c6bf13e142"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/218130","number":218130,"mergeCommit":{"message":"[Console] Fix a11y overlay test (#218130)\n\nFixes https://github.com/elastic/kibana/issues/217057\n\n## Summary\n\nThis PR fixes the flaky test for the a11y overlay by adding a `retry`\nand allowing more time for the overlay element to be detected.\n\nFlaky test runner build:\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8176","sha":"d5bceb79d06d6688e7d7968be1ae71c6bf13e142"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Elena Stoeva <59341489+ElenaStoeva@users.noreply.github.com>
This commit is contained in:
parent
51682db9a8
commit
f9d26b45b6
1 changed files with 5 additions and 2 deletions
|
@ -27,8 +27,11 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
|
||||
it('displays the a11y overlay', async () => {
|
||||
await PageObjects.console.pressEscape();
|
||||
const isOverlayVisible = await PageObjects.console.isA11yOverlayVisible();
|
||||
expect(isOverlayVisible).to.be(true);
|
||||
|
||||
await retry.try(async () => {
|
||||
const isOverlayVisible = await PageObjects.console.isA11yOverlayVisible();
|
||||
expect(isOverlayVisible).to.be(true);
|
||||
});
|
||||
});
|
||||
|
||||
it('disables the a11y overlay via settings', async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue