chore: limit search space for go button

This commit is contained in:
rebuilt 2023-07-19 13:16:54 -07:00
parent 4450b5f331
commit c602ae9db7

View file

@ -28,8 +28,9 @@ describe('navigates the site', () => {
cy.get("#school-dropdown").children("option[selected='selected']").should('have.text', 'Abraham Lincoln Elementary School')
cy.get("a[href='/districts/lowell/schools/abraham-lincoln-elementary-school/overview?year=2023-24']")
cy.contains('Go').click()
cy.get('#schools').within(($schools) => {
cy.contains('Go').click()
})
cy.url().should('include', '/districts/lowell/schools/abraham-lincoln-elementary-school/overview?year=2023-24')
})