[MM-61652]: Removed unnecessary role and aria-level from channel header (#29540)

* [BST-183]: Removed unnecessary role and aria-level from channel header

* [BST-183]: Fix failing E2E test case

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
ayush-chauhan233
2024-12-19 04:08:21 +05:30
коммит произвёл GitHub
родитель fd6a662d76
Коммит eb3862f6eb
2 изменённых файлов: 1 добавлений и 7 удалений

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

@@ -90,7 +90,7 @@ describe('channels > rhs > header', {testIsolation: true}, () => {
cy.get('#rhsContainer').findByTestId('rendered-run-name').should('be.visible').contains('new run name');
// * make sure the channel name remains unchanged
cy.get('#channelHeaderInfo').findByRole('heading').contains(playbookRunName);
cy.get('#channelHeaderInfo').contains(playbookRunName);
});
});

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

@@ -103,8 +103,6 @@ const ChannelHeaderTitle = ({
size='sm'
/>
<strong
role='heading'
aria-level={2}
id='channelHeaderTitle'
className='heading'
>
@@ -141,8 +139,6 @@ const ChannelHeaderTitle = ({
title={channelTitle as string}
>
<strong
role='heading'
aria-level={2}
id='channelHeaderTitle'
className='heading'
ref={headerItemRef}
@@ -156,8 +152,6 @@ const ChannelHeaderTitle = ({
</WithTooltip>
) : (
<strong
role='heading'
aria-level={2}
id='channelHeaderTitle'
className='heading'
ref={headerItemRef}