From e5a20b56e92f89c386d66696e92a5cd5343dafba Mon Sep 17 00:00:00 2001 From: Emma777h Date: Tue, 23 Jan 2024 11:14:42 +0400 Subject: [PATCH] fixes for export list and refresh list --- cypress/e2e/lists/Export-list/export-canned-lists.cy.js | 4 ++++ cypress/e2e/lists/refresh-list/refresh-canned-list.cy.js | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/cypress/e2e/lists/Export-list/export-canned-lists.cy.js b/cypress/e2e/lists/Export-list/export-canned-lists.cy.js index daccf06e05..32ec80afb4 100644 --- a/cypress/e2e/lists/Export-list/export-canned-lists.cy.js +++ b/cypress/e2e/lists/Export-list/export-canned-lists.cy.js @@ -26,6 +26,10 @@ describe('Export canned lists', () => { Lists.waitLoading(); Lists.expiredPatronLoan(); Lists.actionButton(); + Lists.refreshList(); + cy.wait(7000); + cy.contains('View updated list').click(); + Lists.actionButton(); Lists.exportList(); cy.contains( 'Export of Inactive patrons with open loans is being generated. This may take some time for larger lists.', diff --git a/cypress/e2e/lists/refresh-list/refresh-canned-list.cy.js b/cypress/e2e/lists/refresh-list/refresh-canned-list.cy.js index 11a227cedf..aedf45618c 100644 --- a/cypress/e2e/lists/refresh-list/refresh-canned-list.cy.js +++ b/cypress/e2e/lists/refresh-list/refresh-canned-list.cy.js @@ -27,6 +27,10 @@ describe('lists', () => { Lists.waitLoading(); Lists.expiredPatronLoan(); Lists.actionButton(); + Lists.refreshList(); + cy.wait(7000); + cy.contains('View updated list').click(); + Lists.actionButton(); Lists.getViaApi().then((response) => { const filteredItem = response.body.content.find( (item) => item.name === 'Inactive patrons with open loans',