[MM-61577]: Ensure all interactive functionality is operable with the keyboard in emoji picker (#29629)

Этот коммит содержится в:
Saurabh Sharma
2025-02-03 12:26:49 +05:30
коммит произвёл GitHub
родитель 316cde2569
Коммит e8e40c79f6
14 изменённых файлов: 64 добавлений и 36 удалений

Просмотреть файл

@@ -99,13 +99,13 @@ describe('MM-T154 Use keyboard navigation in emoji picker', () => {
cy.uiGetPostTextBox().type('{enter}');
// * Compare selected emoji with last post
cy.getLastPost().find('.emoticon').should('have.attr', 'alt', selectedEmoji);
cy.getLastPost().find('.emoticon').should('have.attr', 'aria-label', selectedEmoji);
});
});
});
const testSelectedIndex = (done) => {
cy.get('div.emoji-picker__item.selected').then((selectedEmoji) => {
cy.get('button.emoji-picker__item.selected').then((selectedEmoji) => {
done(selectedEmoji.index());
});
};