Skip to content

Commit

Permalink
fix(place): expand regex
Browse files Browse the repository at this point in the history
new hit after data update

close #96
  • Loading branch information
duncdrum committed Jul 15, 2024
1 parent ba7a35d commit 7583fb9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cypress/e2e/place.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,14 @@ describe('Publishing Place', () => {
})

// Results are good
// seee #96
// RegEx check for relevant titles is a bit on the flaky side
// see second test below
it('TOP 20 should have topical titles', () => {
cy.get('.resultlist')
.each(($el, index, $lis) => {
cy.wrap($el)
.contains(/^(?=.*Berlin)(?=.*Geschichte)|Kalend.*|Chron.*$/)
.contains(/^(?=.*Berlin)|(?=.*Hohenschönhausen)|(?=.*Geschichte)|Kalend.*|Chron.*$/)
})
.then(($lis) => {
cy.wrap($lis)
Expand Down

0 comments on commit 7583fb9

Please sign in to comment.