[MM-61637]: Add accessible name to the expand RHS button in RHS header (#29783)
* [MA-48]: Add aria-label * [MA-48]: Update snapshots * [MA-48]: Fix E2E tests
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
bf541446cf
Коммит
2d61d13940
@@ -35,11 +35,7 @@ describe('Verify Accessibility Support in different Buttons', () => {
|
||||
within(() => {
|
||||
// * Verify accessibility support in Sidebar Expand and Shrink icon
|
||||
cy.get('button.sidebar--right__expand').
|
||||
should('have.attr', 'aria-label', 'Expand').
|
||||
within(() => {
|
||||
cy.get('.icon-arrow-expand').should('have.attr', 'aria-label', 'Expand Sidebar Icon');
|
||||
cy.get('.icon-arrow-collapse').should('have.attr', 'aria-label', 'Collapse Sidebar Icon');
|
||||
});
|
||||
should('have.attr', 'aria-label', 'Expand Sidebar Icon');
|
||||
|
||||
// * Verify accessibility support in Close icon
|
||||
cy.get('#rhsCloseButton').
|
||||
|
||||
@@ -19,7 +19,7 @@ Cypress.Commands.add('uiCloseRHS', () => {
|
||||
});
|
||||
|
||||
Cypress.Commands.add('uiExpandRHS', () => {
|
||||
cy.findByLabelText('Expand').click();
|
||||
cy.findByLabelText('Expand Sidebar Icon').click();
|
||||
});
|
||||
|
||||
Cypress.Commands.add('isExpanded', {prevSubject: true}, (subject) => {
|
||||
|
||||
Ссылка в новой задаче
Block a user