E2E: Add delay to slow down cypress and depict end user's speed. (#28113)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
88ad3bb95b
Коммит
3e84d20dbe
@@ -153,6 +153,7 @@ describe('Verify Accessibility Support in Modals & Dialogs', () => {
|
|||||||
cy.findAllByRole('dialog').eq(0).within(() => {
|
cy.findAllByRole('dialog').eq(0).within(() => {
|
||||||
const modalName = `Add people to ${testChannel.display_name}`;
|
const modalName = `Add people to ${testChannel.display_name}`;
|
||||||
cy.findByRole('heading', {name: modalName});
|
cy.findByRole('heading', {name: modalName});
|
||||||
|
cy.wait(TIMEOUTS.ONE_SEC);
|
||||||
|
|
||||||
// * Verify the accessibility support in search input
|
// * Verify the accessibility support in search input
|
||||||
cy.findByRole('textbox', {name: 'Search for people or groups'}).
|
cy.findByRole('textbox', {name: 'Search for people or groups'}).
|
||||||
|
|||||||
@@ -66,11 +66,11 @@ function createAndVerifyMessage(message, isCode) {
|
|||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
aliases.forEach((alias) => {
|
aliases.forEach((alias) => {
|
||||||
|
const emoticonText = message.trim() === ':D' ? ':smile:' : ':taco:';
|
||||||
cy.get('@' + alias).
|
cy.get('@' + alias).
|
||||||
children().should('have.class', 'all-emoji').
|
find(`span[data-testid="postEmoji.${emoticonText}"]`).
|
||||||
children().find('span').last().should('have.class', 'emoticon').
|
and('have.attr', 'alt', emoticonText).
|
||||||
and('have.attr', 'alt', message.trim() === ':D' ? ':smile:' : ':taco:').
|
and('have.text', message.trim());
|
||||||
and('have.text', message.trim() === ':D' ? ':smile:' : ':taco:');
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import * as TIMEOUTS from '../../../fixtures/timeouts';
|
|||||||
export function postListOfMessages({sender, channelId, numberOfMessages = 30}) {
|
export function postListOfMessages({sender, channelId, numberOfMessages = 30}) {
|
||||||
Cypress._.times(numberOfMessages, (postIndex) => {
|
Cypress._.times(numberOfMessages, (postIndex) => {
|
||||||
cy.postMessageAs({sender, message: `Other users p-${postIndex}`, channelId});
|
cy.postMessageAs({sender, message: `Other users p-${postIndex}`, channelId});
|
||||||
|
cy.wait(TIMEOUTS.ONE_SEC);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user