Skip to content

Commit

Permalink
Fixed services dummy barcode test
Browse files Browse the repository at this point in the history
  • Loading branch information
verheyenkoen committed Jul 14, 2023
1 parent f4be43f commit b96fb3f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cypress/e2e/catalog/services.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,19 @@ describe('The catalog services', () => {
})

it('should not be possible to request a dummy barcode item via locker', () => {
cy.visit('/catalog/rug01:000027542')
cy.visit('/catalog/rug01:000033939')

cy.contains('Location in depot: RBIB.ARCHIEF 07409 HAN')
cy.contains('Location in depot: RBIB.ARCHIEF 06901')
.closest('.libservice')
.contains('.btn', 'Prepare for loan')
.click()

cy.location('pathname').should('eq', '/en/catalog/rug01:000027542/items/28442-20/requests/new')
cy.location('pathname').should('eq', '/en/catalog/rug01:000033939/items/34839-10/requests/new')
cy.param('scan').should('be.null')
cy.param('service').should('eq', 'LOAN')

cy.get('#content > h2').should('have.text', 'Prepare for loan')
cy.get('.meta-location').should('contain', 'Location in depot: RBIB.ARCHIEF 07409 HAN')
cy.get('.meta-location').should('contain', 'Location in depot: RBIB.ARCHIEF 06901')

cy.get('input[type=radio][name=pickup_location][data-locker=true]').should('not.exist')
})
Expand Down

0 comments on commit b96fb3f

Please sign in to comment.