Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This was extremely annoying!
The only issue with the Cypress tests was that the non-specific selectors, e.g.
cy.get(Selectors.RADIO).first()
orcy.get(Selectors.REACT_SELECT)
were also now returning the off-screen elements included in the closedsideDrawer
form.Filtering on
':visible'
should have worked in theory (and did for the React Select), but two of the Radios stopped returning the visible radios once the off-screen radios were found (??!) I.e.cy.get()
used to return the on-screen radios, but now returned only the off-screen ones before the on-screen ones were even rendered. And a thirdcy.get(Selectors.RADIO)
did return all four elements, but none of them were marked as visible 🤷In fixing the radio selectors, I accidentally changed one selected value, causing an inscrutable missing element in a different test file, which wanted a termination task instead of a harvest task, although that was not clear from the error message. After fixing that, the tests have passed on CI.
Jira link: none
Type of change
How Has This Been Tested?
Ran Cypress locally + in CI on GitHub actions. The wait for the googlemapsAPI call seems to only work in CI now.
Checklist: