From 4c00bec92eebcf7bc16aeddd285900e48bf42b16 Mon Sep 17 00:00:00 2001 From: sviatlana-stsiapanava Date: Thu, 26 Dec 2024 19:19:53 +0500 Subject: [PATCH] Stabilize the test case C368013 --- .../permissions/bulk-edit-with-logs-permissions.cy.js | 5 +++++ cypress/support/fragments/bulk-edit/bulk-edit-logs.js | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/cypress/e2e/bulk-edit/permissions/bulk-edit-with-logs-permissions.cy.js b/cypress/e2e/bulk-edit/permissions/bulk-edit-with-logs-permissions.cy.js index 512130f292..5aff15ee12 100644 --- a/cypress/e2e/bulk-edit/permissions/bulk-edit-with-logs-permissions.cy.js +++ b/cypress/e2e/bulk-edit/permissions/bulk-edit-with-logs-permissions.cy.js @@ -44,6 +44,11 @@ describe('bulk-edit', () => { BulkEditLogs.checkHoldingsCheckbox(); BulkEditLogs.checkUsersCheckbox(); BulkEditLogs.checkItemsCheckbox(); + // steps have been added to stabilize the test case on the bugfest environment because there are many records there that are no longer available for download + cy.wait(5000); + BulkEditLogs.sortLogsTableByColumnHeader('Started'); + BulkEditLogs.sortLogsTableByColumnHeader('Started'); + cy.wait(5000); BulkEditLogs.clickActionsOnTheRow(); BulkEditLogs.verifyTriggerLogsAction(); }, diff --git a/cypress/support/fragments/bulk-edit/bulk-edit-logs.js b/cypress/support/fragments/bulk-edit/bulk-edit-logs.js index 24103b8aea..f0fa43bde4 100644 --- a/cypress/support/fragments/bulk-edit/bulk-edit-logs.js +++ b/cypress/support/fragments/bulk-edit/bulk-edit-logs.js @@ -501,6 +501,10 @@ export default { ]); }, + sortLogsTableByColumnHeader(columnHeader) { + cy.do(MultiColumnListHeader(columnHeader).click()); + }, + fillLogsDate(accordion, dataPicker, value) { cy.do(Accordion(accordion).find(TextField(dataPicker)).fillIn(value)); },