mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[Discover] Unskip and improve a11y test (#216627)
This commit is contained in:
parent
9268afecf7
commit
92d18e1553
1 changed files with 8 additions and 4 deletions
|
@ -50,8 +50,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
await kibanaServer.savedObjects.clean({ types: ['search', 'index-pattern'] });
|
||||
});
|
||||
|
||||
// FLAKY: https://github.com/elastic/kibana/issues/213461
|
||||
describe.skip('top nav menu buttons', () => {
|
||||
describe('top nav menu buttons', () => {
|
||||
const focusAndPressButton = async (buttonTestSubject: string | WebElementWrapper) => {
|
||||
const button =
|
||||
typeof buttonTestSubject === 'string'
|
||||
|
@ -65,9 +64,14 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
menuButtonTestSubject: string
|
||||
) => {
|
||||
await focusAndPressButton(menuButtonTestSubject);
|
||||
expect(await hasFocus(menuButtonTestSubject)).to.be(false);
|
||||
await retry.try(async () => {
|
||||
expect(await hasFocus(menuButtonTestSubject)).to.be(false);
|
||||
});
|
||||
|
||||
await browser.pressKeys(browser.keys.ESCAPE);
|
||||
expect(await hasFocus(menuButtonTestSubject)).to.be(true);
|
||||
await retry.try(async () => {
|
||||
expect(await hasFocus(menuButtonTestSubject)).to.be(true);
|
||||
});
|
||||
};
|
||||
|
||||
it('should return focus to the open button when dismissing the open search flyout', () =>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue