From eb3862f6ebf297e7d0b7b1226255da53b890aaca Mon Sep 17 00:00:00 2001 From: ayush-chauhan233 Date: Thu, 19 Dec 2024 04:08:21 +0530 Subject: [PATCH] [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 --- .../tests/integration/playbooks/channels/rhs/about_spec.js | 2 +- .../src/components/channel_header/channel_header_title.tsx | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/e2e-tests/cypress/tests/integration/playbooks/channels/rhs/about_spec.js b/e2e-tests/cypress/tests/integration/playbooks/channels/rhs/about_spec.js index 64bf07efd7..7e6465ee17 100644 --- a/e2e-tests/cypress/tests/integration/playbooks/channels/rhs/about_spec.js +++ b/e2e-tests/cypress/tests/integration/playbooks/channels/rhs/about_spec.js @@ -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); }); }); diff --git a/webapp/channels/src/components/channel_header/channel_header_title.tsx b/webapp/channels/src/components/channel_header/channel_header_title.tsx index b965ffe18b..58c496b03e 100644 --- a/webapp/channels/src/components/channel_header/channel_header_title.tsx +++ b/webapp/channels/src/components/channel_header/channel_header_title.tsx @@ -103,8 +103,6 @@ const ChannelHeaderTitle = ({ size='sm' /> @@ -141,8 +139,6 @@ const ChannelHeaderTitle = ({ title={channelTitle as string} > ) : (