Skip to content

Commit

Permalink
Update author.cy.js
Browse files Browse the repository at this point in the history
Fix Test Karin  Glaser
  • Loading branch information
annekauf committed Jan 18, 2024
1 parent 78d7025 commit 22fbbae
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions cypress/e2e/author.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ describe('Author Search', () => {
it('first hit should be by the author', () => {
cy.get('#result0')
.find('.resultlist-data')
.contains('Karin Glaser')
.contains('Glaser, Karin')

})
})

Expand Down Expand Up @@ -91,16 +92,16 @@ describe('Author Search', () => {
url: '/Results',
qs: {
lookfor: 'Friedrich Schiller',
type: 'Author',
limit: '30'
type: 'Author'

}
})
})


// Top 30 in author search should all be by author
// Top 20 in author search should all be by author
// see #28
it.only('TOP 30 should all be by author', () => {
it('Top 20 should all be by author', () => {
cy.get('.resultlist-data')
.find('[href*=Author]')
.each(($el, index, $lis) => {
Expand All @@ -109,7 +110,7 @@ describe('Author Search', () => {
})
.then(($lis) => {
cy.wrap($lis)
.should('have.length', '30')
.should('have.length', '20')
})

})
Expand Down

0 comments on commit 22fbbae

Please sign in to comment.