Skip to content

Commit 33a2afe

Browse files
unskipping a11y painless lab test (#127082)
* unskipping a11y painless lab test * focusable element * adding an extra step to get the element in focus * changes to make it work * introduce an retry loop Co-authored-by: Kibana Machine <[email protected]> (cherry picked from commit 1493348)
1 parent 4edc477 commit 33a2afe

File tree

2 files changed

+27
-8
lines changed

2 files changed

+27
-8
lines changed

x-pack/plugins/painless_lab/public/application/components/output_pane/context_tab.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export const ContextTab: FunctionComponent = () => {
6969
itemLayoutAlign="top"
7070
hasDividers
7171
fullWidth
72+
data-test-subj="painlessContextDropDown"
7273
/>
7374
</EuiFormRow>
7475

x-pack/test/accessibility/apps/painless_lab.ts

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
1212
const testSubjects = getService('testSubjects');
1313
const find = getService('find');
1414
const a11y = getService('a11y');
15+
const retry = getService('retry');
1516

1617
describe('Accessibility Painless Lab Editor', () => {
1718
before(async () => {
@@ -39,28 +40,45 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
3940
await a11y.testAppSnapshot();
4041
});
4142

42-
// github.com/elastic/kibana/issues/75876
43-
it.skip('click on the context button', async () => {
43+
it('click on the context button', async () => {
4444
const painlessTabsContext = await find.byCssSelector(
4545
'[data-test-subj="painlessTabs"] #context'
4646
);
4747
await painlessTabsContext.click();
4848
await a11y.testAppSnapshot();
4949
});
5050

51-
it.skip('click on the Basic button', async () => {
51+
it('click on the Basic button', async () => {
52+
await testSubjects.click('painlessContextDropDown');
53+
await retry.try(async () => {
54+
await a11y.testAppSnapshot();
55+
});
5256
await testSubjects.click('basicButtonDropdown');
53-
await a11y.testAppSnapshot();
57+
await retry.try(async () => {
58+
await a11y.testAppSnapshot();
59+
});
5460
});
5561

56-
it.skip('click on the Filter button', async () => {
62+
it('click on the Filter button', async () => {
63+
await testSubjects.click('painlessContextDropDown');
64+
await retry.try(async () => {
65+
await a11y.testAppSnapshot();
66+
});
5767
await testSubjects.click('filterButtonDropdown');
58-
await a11y.testAppSnapshot();
68+
await retry.try(async () => {
69+
await a11y.testAppSnapshot();
70+
});
5971
});
6072

61-
it.skip('click on the Score button', async () => {
73+
it('click on the Score button', async () => {
74+
await testSubjects.click('painlessContextDropDown');
75+
await retry.try(async () => {
76+
await a11y.testAppSnapshot();
77+
});
6278
await testSubjects.click('scoreButtonDropdown');
63-
await a11y.testAppSnapshot();
79+
await retry.try(async () => {
80+
await a11y.testAppSnapshot();
81+
});
6482
});
6583
});
6684
}

0 commit comments

Comments
 (0)