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>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
a47af39d80
Коммит
93a2c3281a
@@ -119,7 +119,7 @@ describe('Guest Accounts', () => {
|
||||
children().should('have.length', 1).
|
||||
eq(0).should('contain', testChannel.name).click();
|
||||
|
||||
cy.get('#inviteGuestButton').scrollIntoView().click();
|
||||
cy.findByTestId('inviteButton').scrollIntoView().click();
|
||||
cy.findByTestId('confirm-done').should('be.visible').click();
|
||||
|
||||
// # Get invitation link.
|
||||
|
||||
@@ -65,7 +65,7 @@ describe('Guest Account - Guest User Invitation Flow', () => {
|
||||
});
|
||||
|
||||
// * Verify Invite Guests button is disabled by default
|
||||
cy.get('#inviteGuestButton').scrollIntoView().should('be.visible').and('be.disabled');
|
||||
cy.findByTestId('inviteButton').scrollIntoView().should('be.visible').and('be.disabled');
|
||||
|
||||
// * Verify Invite People field
|
||||
const email = `temp-${getRandomId()}@mattermost.com`;
|
||||
@@ -141,7 +141,7 @@ describe('Guest Account - Guest User Invitation Flow', () => {
|
||||
invitePeople(email, 1, email, 'Town Square', false);
|
||||
|
||||
// * Verify Invite Guests button is disabled
|
||||
cy.get('#inviteGuestButton').should('be.disabled');
|
||||
cy.findByTestId('inviteButton').should('be.disabled');
|
||||
});
|
||||
|
||||
it('MM-T4449 Invite Guest via Email containing upper case letters', () => {
|
||||
@@ -177,7 +177,7 @@ describe('Guest Account - Guest User Invitation Flow', () => {
|
||||
children().should('have.length', 1).eq(0).should('contain', newUser.username).click();
|
||||
|
||||
// # Click Invite Members
|
||||
cy.get('#inviteMembersButton').scrollIntoView().click();
|
||||
cy.findByTestId('inviteButton').scrollIntoView().click();
|
||||
|
||||
// * Verify the content and error message in the Invitation Modal
|
||||
cy.findByTestId('invitationModal').within(() => {
|
||||
@@ -218,7 +218,7 @@ describe('Guest Account - Guest User Invitation Flow', () => {
|
||||
cy.get('.users-emails-input__menu').children().should('have.length', 1).eq(0).should('contain', email).click();
|
||||
|
||||
// # Click Invite Guests Button
|
||||
cy.get('#inviteGuestButton').scrollIntoView().click();
|
||||
cy.findByTestId('inviteButton').scrollIntoView().click();
|
||||
|
||||
// * Verify invite more button is present
|
||||
cy.findByTestId('invite-more').should('be.visible');
|
||||
|
||||
@@ -38,7 +38,7 @@ export function invitePeople(typeText: string, resultsCount: number, verifyText:
|
||||
|
||||
if (clickInvite) {
|
||||
// # Click Invite Guests Button
|
||||
cy.get('#inviteGuestButton').scrollIntoView().click();
|
||||
cy.findByTestId('inviteButton').scrollIntoView().click();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ describe('Guest Account - Member Invitation Flow', () => {
|
||||
|
||||
cy.get('@clipboard').its('contents').should('eq', `${baseUrl}/signup_user_complete/?id=${testTeam.invite_id}`);
|
||||
|
||||
cy.get('#inviteMembersButton').scrollIntoView().should('be.visible').and('be.disabled');
|
||||
cy.findByTestId('inviteButton').scrollIntoView().should('be.visible').and('be.disabled');
|
||||
cy.get('.users-emails-input__control').should('be.visible').within(() => {
|
||||
// * Verify the input placeholder text
|
||||
cy.get('.users-emails-input__placeholder').should('have.text', 'Enter a name or email address');
|
||||
@@ -224,7 +224,7 @@ describe('Guest Account - Member Invitation Flow', () => {
|
||||
});
|
||||
|
||||
// # Click Invite Members
|
||||
cy.get('#inviteMembersButton').scrollIntoView().click();
|
||||
cy.findByTestId('inviteButton').scrollIntoView().click();
|
||||
|
||||
// * Verify the content and message in the Invitation Modal
|
||||
cy.findByTestId('invitationModal').within(() => {
|
||||
@@ -267,7 +267,7 @@ function invitePeople(typeText, resultsCount, verifyText, clickInvite = true) {
|
||||
|
||||
// # Click Invite Members
|
||||
if (clickInvite) {
|
||||
cy.get('#inviteMembersButton').scrollIntoView().click();
|
||||
cy.findByTestId('inviteButton').scrollIntoView().click();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ describe('Group Synced Team - Bot invitation flow', () => {
|
||||
click();
|
||||
|
||||
// # Invite the bot
|
||||
cy.get('#inviteMembersButton').click();
|
||||
cy.findByTestId('inviteButton').click();
|
||||
|
||||
// * Ensure that the response message was not an error
|
||||
cy.get('.InviteResultRow').find('.reason').should('not.contain', 'Error');
|
||||
|
||||
Ссылка в новой задаче
Block a user