[skip ci] Stabilize replies_spec.ts (#29564)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
7df4727353
Коммит
861fcfb032
@@ -172,7 +172,7 @@ Cypress.Commands.add('getLastPostId', getLastPostId);
|
|||||||
|
|
||||||
function uiWaitUntilMessagePostedIncludes(message: string): ChainableT<any> {
|
function uiWaitUntilMessagePostedIncludes(message: string): ChainableT<any> {
|
||||||
const checkFn = () => {
|
const checkFn = () => {
|
||||||
return cy.getLastPost().then((el) => {
|
return cy.getLastPost().scrollIntoView().then((el) => {
|
||||||
const postedMessageEl = el.find('.post-message__text')[0];
|
const postedMessageEl = el.find('.post-message__text')[0];
|
||||||
return Boolean(postedMessageEl && postedMessageEl.textContent.includes(message));
|
return Boolean(postedMessageEl && postedMessageEl.textContent.includes(message));
|
||||||
});
|
});
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user