diff --git a/e2e-tests/cypress/tests/integration/channels/channel/channel_header_modal_spec.js b/e2e-tests/cypress/tests/integration/channels/channel/channel_header_modal_spec.js index 484882717231..63c1fb2a32ad 100644 --- a/e2e-tests/cypress/tests/integration/channels/channel/channel_header_modal_spec.js +++ b/e2e-tests/cypress/tests/integration/channels/channel/channel_header_modal_spec.js @@ -36,13 +36,13 @@ describe('Channel Settings - Channel Header', () => { cy.findByText('Edit Channel Header').click(); // # Type something in the header edit box - cy.get('[aria-label="edit the channel header..."]').clear().type('This is the new header content'); + cy.get('textarea[placeholder="Edit the channel header..."]').clear().type('This is the new header content'); // * Verify the "Preview" button exists cy.findByText('Preview').should('be.visible'); // * Verify that before hitting the preview button, the style on the textbox is `display: block` - cy.get('[aria-label="edit the channel header..."]').should('have.css', 'display', 'block'); + cy.get('textarea[placeholder="Edit the channel header..."]').should('have.css', 'display', 'block'); // # Click the "Preview" button cy.findByText('Preview').click(); @@ -51,7 +51,7 @@ describe('Channel Settings - Channel Header', () => { cy.findByText('Edit').should('be.visible'); // * Verify that the display is now none on the textbox element - cy.get('[aria-label="edit the channel header..."]').should('have.css', 'display', 'none'); + cy.get('textarea[placeholder="Edit the channel header..."]').should('have.css', 'display', 'none'); }); }); }); diff --git a/e2e-tests/cypress/tests/integration/channels/enterprise/accessibility/accessibility_input_fields_spec.ts b/e2e-tests/cypress/tests/integration/channels/enterprise/accessibility/accessibility_input_fields_spec.ts index 3ea9f5acd562..4cef7d149dd1 100644 --- a/e2e-tests/cypress/tests/integration/channels/enterprise/accessibility/accessibility_input_fields_spec.ts +++ b/e2e-tests/cypress/tests/integration/channels/enterprise/accessibility/accessibility_input_fields_spec.ts @@ -122,7 +122,7 @@ describe('Verify Accessibility Support in different input fields', () => { cy.apiAddUserToTeam(testTeam.id, user.id).then(() => { cy.apiAddUserToChannel(testChannel.id, user.id).then(() => { // * Verify Accessibility support in post input field - cy.uiGetPostTextBox().should('have.attr', 'aria-label', `write to ${testChannel.display_name}`).clear().focus(); + cy.uiGetPostTextBox().should('have.attr', 'placeholder', `Write to ${testChannel.display_name}`).clear().focus(); // # Ensure User list is cached once in UI cy.uiGetPostTextBox().type('@').wait(TIMEOUTS.FIVE_SEC); @@ -168,7 +168,7 @@ describe('Verify Accessibility Support in different input fields', () => { it('MM-T1458 Verify Accessibility Support in Main Post Input', () => { cy.get('#advancedTextEditorCell').within(() => { // * Verify Accessibility Support in Main Post input - cy.uiGetPostTextBox().should('have.attr', 'aria-label', `write to ${testChannel.display_name}`).and('have.attr', 'role', 'textbox').clear().focus().type('test'); + cy.uiGetPostTextBox().should('have.attr', 'placeholder', `Write to ${testChannel.display_name}`).and('have.attr', 'role', 'textbox').clear().focus().type('test'); // # Set a11y focus on the textbox cy.get('#FormattingControl_bold').focus().tab({shift: true}); diff --git a/webapp/channels/src/components/__snapshots__/autosize_textarea.test.tsx.snap b/webapp/channels/src/components/__snapshots__/autosize_textarea.test.tsx.snap index 9ba53896432d..6d20a8a716bd 100644 --- a/webapp/channels/src/components/__snapshots__/autosize_textarea.test.tsx.snap +++ b/webapp/channels/src/components/__snapshots__/autosize_textarea.test.tsx.snap @@ -2,24 +2,7 @@ exports[`components/AutosizeTextarea should match snapshot, init 1`] = `