MM-53813: Fix(accessibility): on channels page (#24122)

* fix(accessibility): on channels page

* fix lint and update dynamic-virtualized-list

* fix snapshot and update per feedback

* fix e2e tests

* fix test

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Saturnino Abril
2023-07-28 11:17:11 -04:00
коммит произвёл GitHub
родитель a47af39d80
Коммит 93a2c3281a
46 изменённых файлов: 149 добавлений и 141 удалений

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

@@ -83,7 +83,7 @@ describe('Team Settings', () => {
}
cy.findByRole('textbox', {name: 'Add or Invite People'}).type(email, {force: true}).wait(TIMEOUTS.HALF_SEC).type('{enter}', {force: true});
cy.get('#inviteMembersButton').click();
cy.findByTestId('inviteButton').click();
// # Wait for a while to ensure that email notification is sent and logout from sysadmin account
cy.wait(TIMEOUTS.FIVE_SEC);

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

@@ -40,7 +40,7 @@ export const inviteUserByEmail = (email) => {
typeWithForce(email).
wait(TIMEOUTS.HALF_SEC).
typeWithForce('{enter}');
cy.get('#inviteMembersButton').click();
cy.findByTestId('inviteButton').click();
// # Wait for a while to ensure that email notification is sent
cy.wait(TIMEOUTS.TWO_SEC);

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

@@ -172,7 +172,7 @@ function inviteUser(user) {
cy.get('.users-emails-input__menu').children().eq(0).should('contain', user.username).click();
// # Click Invite Members
cy.get('#inviteMembersButton').scrollIntoView().click();
cy.findByTestId('inviteButton').scrollIntoView().click();
}
function inviteUserToTeamAsMember(testUser, testTeam, user) {

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

@@ -82,6 +82,6 @@ describe('Team Settings', () => {
typeWithForce(email).
wait(TIMEOUTS.HALF_SEC).
typeWithForce('{enter}');
cy.get('#inviteMembersButton').click();
cy.findByTestId('inviteButton').click();
}
});

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

@@ -93,7 +93,7 @@ describe('Teams Suite', () => {
click();
// # Click "Invite Members" button, then "Done" button
cy.get('#inviteMembersButton').click();
cy.findByTestId('inviteButton').click();
cy.findByTestId('confirm-done').click();
// * As sysadmin, verify system message posts in Town Square and Off-Topic