diff --git a/cypress/e2e/reading-room-access/scan-patron-card-page-with-allowed-user.cy.js b/cypress/e2e/reading-room-access/scan-patron-card-page-with-allowed-user.cy.js index de852d5833..2f128a77a1 100644 --- a/cypress/e2e/reading-room-access/scan-patron-card-page-with-allowed-user.cy.js +++ b/cypress/e2e/reading-room-access/scan-patron-card-page-with-allowed-user.cy.js @@ -55,6 +55,12 @@ describe('Reading Room Access', () => { cy.getAdminToken(); Users.deleteViaApi(testData.firstUser.userId); Users.deleteViaApi(testData.secondUser.userId); + UserEdit.changeServicePointPreferenceViaApi(testData.firstUser.userId, [ + testData.servicePoint.id, + ]); + UserEdit.changeServicePointPreferenceViaApi(testData.secondUser.userId, [ + testData.servicePoint.id, + ]); ServicePoints.deleteViaApi(testData.servicePoint.id); SettingsReadingRoom.deleteReadingRoomViaApi(testData.readingRoomId); });