[MM-61646]: Added logic to correctly give accessible name to channel header button (#29788)

* [MA-32]: Added logic to correctly give accessible name to channel header button

* [MA-32]: Fixed id name

* [MA-32]: Fixed failing e2e test case

* [MA-32]: Updated the aria-label attribute
Этот коммит содержится в:
ayush-chauhan233
2025-01-24 23:20:48 +05:30
коммит произвёл GitHub
родитель 49948891ce
Коммит ca2b3fd528
5 изменённых файлов: 32 добавлений и 13 удалений

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

@@ -30,7 +30,7 @@ describe('Channel Settings - Channel Header', () => {
cy.visit(`/${testTeam.name}/channels/${channel.name}`);
// # Click on the channel name in the channel header to open the channel menu options
cy.get('[aria-label="channel menu"]').click();
cy.get(`[aria-label="${channel.name.split('-').join(' ')} channel menu"]`).click();
// # Select the "Edit Channel Header" option from the dropdown
cy.findByText('Edit Channel Header').click();