Skip to content

Commit

Permalink
added and refined review test
Browse files Browse the repository at this point in the history
added test (allfields Mäser Bach und die drei Temporätsel) and refined test (title Bach und die drei Temporätsel)
#23
#12
  • Loading branch information
annekauf committed Nov 29, 2024
1 parent 497ebcc commit 72f8e11
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions cypress/e2e/reviews.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,20 +166,44 @@ describe('Review after reviewed', () => {
})
})

describe('Mäser, Rolf (2000): Bach und die drei Temporätsel. Bern: Peter Lang', () => {
describe('Title Search "Bach und die drei Temporätsel" for this book: Mäser, Rolf (2000): Bach und die drei Temporätsel. Bern: Peter Lang', () => {
beforeEach(() => {
cy.visit({
url: '/Results',
qs: {
lookfor: 'mäser Bach und die drei Temporätsel',
type: 'allFields',
lookfor: 'Bach und die drei Temporätsel',
type: 'Title',
limit: '10'
}
})
})

// PPN 161359545X
it.only('primary book should be before reviews', () => {
it('primary book should be before reviews', () => {
cy.get('#result0')
.find('.save-record')
.invoke('attr', 'data-id')
.should('equal','161359545X')


})

})
// test fails on Ranking1
describe('AllFields Search "Mäser Bach und die drei Temporätsel" for this book: Mäser, Rolf (2000): Bach und die drei Temporätsel. Bern: Peter Lang', () => {
beforeEach(() => {
cy.visit({
url: '/Results',
qs: {
lookfor: 'Mäser Bach und die drei Temporätsel',
type: 'AllFields',
limit: '10'
}
})
})

// PPN 161359545X
it('primary book should be before reviews', () => {
cy.get('#result0')
.find('.save-record')
.invoke('attr', 'data-id')
Expand Down

0 comments on commit 72f8e11

Please sign in to comment.