diff --git a/e2e-tests/cypress/tests/integration/channels/accessibility/accessibility_post_spec.js b/e2e-tests/cypress/tests/integration/channels/accessibility/accessibility_post_spec.js index 74a99a65d4..f74a7a5360 100644 --- a/e2e-tests/cypress/tests/integration/channels/accessibility/accessibility_post_spec.js +++ b/e2e-tests/cypress/tests/integration/channels/accessibility/accessibility_post_spec.js @@ -181,7 +181,7 @@ describe('Verify Accessibility Support in Post', () => { } // * Verify focus is on the reactions button - cy.get(`#CENTER_reaction_${postId}`).should('be.focused').and('have.attr', 'aria-label', 'add reaction'); + cy.get(`#CENTER_reaction_${postId}`).should('be.focused').and('have.attr', 'aria-label', 'Add Reaction'); cy.focused().tab(); // * Verify focus is on the save post button @@ -247,7 +247,7 @@ describe('Verify Accessibility Support in Post', () => { cy.focused().tab({shift: true}); // * Verify focus is on the reactions button - cy.get(`#RHS_COMMENT_reaction_${postId}`).should('be.focused').and('have.attr', 'aria-label', 'add reaction'); + cy.get(`#RHS_COMMENT_reaction_${postId}`).should('be.focused').and('have.attr', 'aria-label', 'Add Reaction'); cy.focused().tab({shift: true}); // * Verify focus is on most recent action diff --git a/webapp/channels/src/components/actions_menu/actions_menu.tsx b/webapp/channels/src/components/actions_menu/actions_menu.tsx index dac3f3b6db..a4a5694535 100644 --- a/webapp/channels/src/components/actions_menu/actions_menu.tsx +++ b/webapp/channels/src/components/actions_menu/actions_menu.tsx @@ -24,7 +24,6 @@ import Pluggable from 'plugins/pluggable'; import {createCallContext} from 'utils/apps'; import {Constants, Locations, ModalIdentifiers} from 'utils/constants'; import * as PostUtils from 'utils/post_utils'; -import * as Utils from 'utils/utils'; import type {ModalData} from 'types/actions'; import type {HandleBindingClick, OpenAppsModal, PostEphemeralCallResponseForPost} from 'types/apps'; @@ -395,7 +394,7 @@ export class ActionMenuClass extends React.PureComponent { key='more-actions-button' ref={this.buttonRef} id={`${this.props.location}_actions_button_${this.props.post.id}`} - aria-label={Utils.localizeMessage({id: 'post_info.actions.tooltip.actions', defaultMessage: 'Actions'}).toLowerCase()} + aria-label={formatMessage({id: 'post_info.actions.tooltip.actions', defaultMessage: 'Actions'}).toLowerCase()} className={classNames('post-menu__item', { 'post-menu__item--active': this.props.isMenuOpen, })} @@ -409,7 +408,7 @@ export class ActionMenuClass extends React.PureComponent { id={`${this.props.location}_actions_dropdown_${this.props.post.id}`} openLeft={true} openUp={this.state.openUp} - ariaLabel={Utils.localizeMessage({id: 'post_info.menuAriaLabel', defaultMessage: 'Post extra options'})} + ariaLabel={formatMessage({id: 'post_info.menuAriaLabel', defaultMessage: 'Post extra options'})} key={`${this.props.location}_actions_dropdown_${this.props.post.id}`} > {menuItems} diff --git a/webapp/channels/src/components/markdown_image/__snapshots__/markdown_image.test.tsx.snap b/webapp/channels/src/components/markdown_image/__snapshots__/markdown_image.test.tsx.snap index feb76f0ce4..cca77fe243 100644 --- a/webapp/channels/src/components/markdown_image/__snapshots__/markdown_image.test.tsx.snap +++ b/webapp/channels/src/components/markdown_image/__snapshots__/markdown_image.test.tsx.snap @@ -17,7 +17,7 @@ exports[`components/MarkdownImage should match snapshot 1`] = ` `; exports[`components/MarkdownImage should match snapshot for SizeAwareImage dimensions 1`] = ` - - - - -