fix accessibility_modals_dialog_spec (#33490)

This commit is contained in:
sabril
2025-07-21 17:51:55 +08:00
committed by GitHub
parent 59f7432454
commit 92a3ec8c9d
@@ -30,7 +30,7 @@ describe('Verify Accessibility Support in Modals & Dialogs', () => {
testChannel = channel;
testUser = user;
cy.apiCreateUser().then(({user: newUser}) => {
cy.apiCreateUser({prefix: 'user000b'}).then(({user: newUser}) => {
cy.apiAddUserToTeam(testTeam.id, newUser.id).then(() => {
cy.apiAddUserToChannel(testChannel.id, newUser.id);
});
@@ -167,9 +167,9 @@ describe('Verify Accessibility Support in Modals & Dialogs', () => {
wait(TIMEOUTS.HALF_SEC).
typeWithForce('u').
wait(TIMEOUTS.HALF_SEC).
typeWithForce('{downarrow}{downarrow}{downarrow}{uparrow}');
typeWithForce('{downarrow}{downarrow}{downarrow}{downarrow}{uparrow}');
cy.get('#multiSelectList').
children().eq(1).
children().eq(2).
should('have.class', 'more-modal__row--selected').
within(() => {
cy.get('.more-modal__name').invoke('text').then((user) => {