Skip to content

Commit

Permalink
Update search test cases to check for 'No results found' instead of s…
Browse files Browse the repository at this point in the history
…pecific entity-based messages
  • Loading branch information
jrhoads committed Feb 4, 2025
1 parent 9647510 commit ad7957a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/searchOrganization.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ describe('Search Organizations', () => {
// timeout for the query results to return
// return introduction text
.get('.alert-warning', { timeout: 60000 })
.should('contain', 'No organizations found.')
.should('contain', 'No results found.')
})
})

Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/searchPerson.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe('Search People', () => {
.type('xxxxxyyyyy{enter}')
// timeout for the query results to return
.get('.alert-warning', { timeout: 60000 })
.should('contain', 'No people found.')
.should('contain', 'No results found.')
})
})

Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/searchWork.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ describe('Search Works', () => {
.type('xxxxxxxxxxxx{enter}')
// timeout for the query results to return
.get('.alert-warning', { timeout: 60000 })
.should('contain', 'No works found.')
.should('contain', 'No results found.')
// no results count for zero results
.get('.member-results')
.should('not.exist')
Expand Down

0 comments on commit ad7957a

Please sign in to comment.