Skip to content

Commit

Permalink
Update author.cy.js
Browse files Browse the repository at this point in the history
Plus Beispiel Friedrich Schiller

see #14
see #28
  • Loading branch information
annekauf committed Jan 18, 2024
1 parent 9b41859 commit 78d7025
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions cypress/e2e/author.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,35 @@ describe('Author Search', () => {

})
})
describe('Friedrich Schiller' , () => {
beforeEach(() => {
cy.visit({
url: '/Results',
qs: {
lookfor: 'Friedrich Schiller',
type: 'Author',
limit: '30'
}
})
})


// Top 30 in author search should all be by author
// see #28
it.only('TOP 30 should all be by author', () => {
cy.get('.resultlist-data')
.find('[href*=Author]')
.each(($el, index, $lis) => {
cy.wrap($el)
.contains('Schiller, Friedrich')
})
.then(($lis) => {
cy.wrap($lis)
.should('have.length', '30')
})

})
})

describe('oliver heaviside' , () => {
beforeEach(() => {
Expand Down

0 comments on commit 78d7025

Please sign in to comment.