Select: Ensure screenreader correctly narrates options (#88118)
* replace select aria-label with data-testid * update in copy pasted places as well * update plugin-e2e to 1.2.2
This commit is contained in:
@@ -107,5 +107,5 @@ describe('Prometheus config', () => {
|
||||
});
|
||||
|
||||
export function selectOption(option: string) {
|
||||
cy.get("[aria-label='Select option']").contains(option).should('be.visible').click();
|
||||
e2e.components.Select.option().contains(option).should('be.visible').click();
|
||||
}
|
||||
|
||||
@@ -178,5 +178,5 @@ describe('Prometheus query editor', () => {
|
||||
});
|
||||
|
||||
function selectOption(option: string) {
|
||||
cy.get("[aria-label='Select option']").contains(option).should('be.visible').click();
|
||||
e2e.components.Select.option().contains(option).should('be.visible').click();
|
||||
}
|
||||
|
||||
@@ -118,5 +118,5 @@ describe('Prometheus variable query editor', () => {
|
||||
});
|
||||
|
||||
function selectOption(option: string) {
|
||||
cy.get("[aria-label='Select option']").contains(option).should('be.visible').click();
|
||||
e2e.components.Select.option().contains(option).should('be.visible').click();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user