From 5fe45042995b647d4952c2cdde0e74504efb4285 Mon Sep 17 00:00:00 2001 From: Sherzod Kenjaev Date: Fri, 25 Oct 2024 11:19:10 +0500 Subject: [PATCH] test fixes --- .../user-can't-link-bibField100-with-wrong-record.cy.js | 1 - ...n-search-marcAuth-by-lccn-using-query-without-spaces.cy.js | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cypress/e2e/marc/marc-bibliographic/edit-marc-bib/manual-linking/user-can't-link-bibField100-with-wrong-record.cy.js b/cypress/e2e/marc/marc-bibliographic/edit-marc-bib/manual-linking/user-can't-link-bibField100-with-wrong-record.cy.js index 137f0c0e28..3548432846 100644 --- a/cypress/e2e/marc/marc-bibliographic/edit-marc-bib/manual-linking/user-can't-link-bibField100-with-wrong-record.cy.js +++ b/cypress/e2e/marc/marc-bibliographic/edit-marc-bib/manual-linking/user-can't-link-bibField100-with-wrong-record.cy.js @@ -79,7 +79,6 @@ describe('MARC', () => { cy.getAdminToken(); // make sure there are no duplicate records in the system MarcAuthorities.deleteMarcAuthorityByTitleViaAPI('C380449*'); - MarcAuthorities.deleteMarcAuthorityByTitleViaAPI('C440114*'); cy.createTempUser([ Permissions.inventoryAll.gui, diff --git a/cypress/e2e/marc/plug-in-marc-authority/plug-in-marc-authority-search/plug-in-search-marcAuth-by-lccn-using-query-without-spaces.cy.js b/cypress/e2e/marc/plug-in-marc-authority/plug-in-marc-authority-search/plug-in-search-marcAuth-by-lccn-using-query-without-spaces.cy.js index 596541f53a..08ffeab2f0 100644 --- a/cypress/e2e/marc/plug-in-marc-authority/plug-in-marc-authority-search/plug-in-search-marcAuth-by-lccn-using-query-without-spaces.cy.js +++ b/cypress/e2e/marc/plug-in-marc-authority/plug-in-marc-authority-search/plug-in-search-marcAuth-by-lccn-using-query-without-spaces.cy.js @@ -61,6 +61,10 @@ describe('MARC', () => { const createdAuthorityIDs = []; before('Creating user', () => { + cy.getAdminToken(); + // make sure there are no duplicate records in the system + MarcAuthorities.deleteMarcAuthorityByTitleViaAPI('C440114*'); + cy.createTempUser([ Permissions.inventoryAll.gui, Permissions.uiMarcAuthoritiesAuthorityRecordView.gui,