[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>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
fd6a662d76
Коммит
eb3862f6eb
@@ -90,7 +90,7 @@ describe('channels > rhs > header', {testIsolation: true}, () => {
|
|||||||
cy.get('#rhsContainer').findByTestId('rendered-run-name').should('be.visible').contains('new run name');
|
cy.get('#rhsContainer').findByTestId('rendered-run-name').should('be.visible').contains('new run name');
|
||||||
|
|
||||||
// * make sure the channel name remains unchanged
|
// * 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'
|
size='sm'
|
||||||
/>
|
/>
|
||||||
<strong
|
<strong
|
||||||
role='heading'
|
|
||||||
aria-level={2}
|
|
||||||
id='channelHeaderTitle'
|
id='channelHeaderTitle'
|
||||||
className='heading'
|
className='heading'
|
||||||
>
|
>
|
||||||
@@ -141,8 +139,6 @@ const ChannelHeaderTitle = ({
|
|||||||
title={channelTitle as string}
|
title={channelTitle as string}
|
||||||
>
|
>
|
||||||
<strong
|
<strong
|
||||||
role='heading'
|
|
||||||
aria-level={2}
|
|
||||||
id='channelHeaderTitle'
|
id='channelHeaderTitle'
|
||||||
className='heading'
|
className='heading'
|
||||||
ref={headerItemRef}
|
ref={headerItemRef}
|
||||||
@@ -156,8 +152,6 @@ const ChannelHeaderTitle = ({
|
|||||||
</WithTooltip>
|
</WithTooltip>
|
||||||
) : (
|
) : (
|
||||||
<strong
|
<strong
|
||||||
role='heading'
|
|
||||||
aria-level={2}
|
|
||||||
id='channelHeaderTitle'
|
id='channelHeaderTitle'
|
||||||
className='heading'
|
className='heading'
|
||||||
ref={headerItemRef}
|
ref={headerItemRef}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user