Skip to content

Commit

Permalink
Update author.cy.js
Browse files Browse the repository at this point in the history
Relax regular expression
see #14
  • Loading branch information
annekauf committed Feb 2, 2024
1 parent c911a96 commit 5a06798
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cypress/e2e/author.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('Author Search', () => {
it('first hit should be by the author', {tags: ['@next']}, () => {
cy.get('#result0')
.find('.resultlist-data')
.contains(/^(?=.*Karin)(?=.*Glaser)$/)
.contains(/(?=.*Karin)(?=.*Glaser)/)

})
})
Expand Down Expand Up @@ -97,7 +97,7 @@ describe('Author Search', () => {
.find('[href*=Author]')
.each(($el, index, $lis) => {
cy.wrap($el)
.contains(/^(?=.*Samuel)(?=.*Scheidt)$/)
.contains(/(?=.*Samuel)(?=.*Scheidt)/)
})
.then(($lis) => {
cy.wrap($lis)
Expand Down Expand Up @@ -126,7 +126,7 @@ describe('Author Search', () => {
.find('[href*=Author]')
.each(($el, index, $lis) => {
cy.wrap($el)
.contains(/^(?=.*Friedrich)(?=.*Schiller)$/)
.contains(/(?=.*Friedrich)(?=.*Schiller)/)
})
.then(($lis) => {
cy.wrap($lis)
Expand Down Expand Up @@ -180,7 +180,7 @@ describe('Elfriede Jelinek', () => {
.find('[href*=Author]')
.each(($el, index, $lis) => {
cy.wrap($el)
.contains(/^(?=.*Elfriede)(?=.*Jelinek)$/)
.contains(/(?=.*Elfriede)(?=.*Jelinek)/)
})
.then(($lis) => {
cy.wrap($lis)
Expand Down

0 comments on commit 5a06798

Please sign in to comment.