diff --git a/acceptanceTests/cypress/integration/tests/UiTest.js b/acceptanceTests/cypress/integration/tests/UiTest.js index a65b6e5a7..6b9de5069 100644 --- a/acceptanceTests/cypress/integration/tests/UiTest.js +++ b/acceptanceTests/cypress/integration/tests/UiTest.js @@ -218,24 +218,22 @@ function checkFilter(filterDetails) { checkRightSideResponseBody(); }); - setTimeout(function () { - resizeToHugeMizu(); + resizeToHugeMizu(); - // checking only 'leftTextCheck' on all entries because the rest of the checks require more time - cy.get(`#list [id^=entry]`).each(elem => { - const element = elem[0]; - let entryId = getEntryId(element.id); - leftTextCheck(entryId, leftSidePath, leftSideExpectedText); - }); + // checking only 'leftTextCheck' on all entries because the rest of the checks require more time + cy.get(`#list [id^=entry]`).each(elem => { + const element = elem[0]; + let entryId = getEntryId(element.id); + leftTextCheck(entryId, leftSidePath, leftSideExpectedText); + }); - // making the other 3 checks on the first X entries (longer time for each check) - deeperCheck(leftSidePath, rightSidePath, name, leftSideExpectedText, rightSideExpectedText, entriesForDeeperCheck); + // making the other 3 checks on the first X entries (longer time for each check) + deeperCheck(leftSidePath, rightSidePath, name, leftSideExpectedText, rightSideExpectedText, entriesForDeeperCheck); - // reloading then waiting for the entries number to load - resizeToNormalMizu(); - cy.reload(); - cy.get('#total-entries', {timeout: refreshWaitTimeout}).should('have.text', totalEntries); - }, 4000); + // reloading then waiting for the entries number to load + resizeToNormalMizu(); + cy.reload(); + cy.get('#total-entries', {timeout: refreshWaitTimeout}).should('have.text', totalEntries); }) }); }