Skip to content

Commit

Permalink
Use "data-test" in status test
Browse files Browse the repository at this point in the history
  • Loading branch information
patschilf committed Aug 24, 2023
1 parent 4d55658 commit df1afe6
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions tests/cypress/status/e2e/unbscholar-lib-unb-ca.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@ describe('UNB Scholar Research Repository', {baseUrl: host, groups: ['sites']},
})

specify('Search for "New Brunswick" should find 5+ results', () => {
cy.get('.search-container form').within(() => {
cy.get('input[name="query"]')
.type('New Brunswick')
}).submit()
cy.url()
.should('match', /\/search\?query=New%20Brunswick/)
cy.get('#search-content ul.list-unstyled li')
cy.get('[data-test="search-box"]')
.type('New Brunswick')
cy.get('[data-test="search-button"')
.click()

cy.get('[data-test="list-object"]')
.should('have.lengthOf.at.least', 5)
})
})
Expand Down

0 comments on commit df1afe6

Please sign in to comment.