Update Page Objects to use `check_element` and `choose_element`
Problem
Following a recent UI change we saw several e2e test failures because capybara could no longer check checkboxes or radio buttons.
Proposal
A quick fix is being submitted, but we should ensure that all page objects check checkboxes consistently, via the inherited check_element
method. For example, click_element :confidential_epic_checkbox
.
We should also create choose_element
method so that page objects don't use Capybara's choose
directly, and don't need individual updates if the behavior changes again.
There's a list of tests that failed in #323267 (closed) but there could be others that need to be updated that just happened to pass.
-
Add check_element
anduncheck_element
methods for checkboxes !55907 (merged) -
Add choose_element
method for radio buttons !56871 (merged) -
Fix checkbox workarounds !58958 (merged) -
Update existing e2e radio buttons to utilize choose_element
!58897 (merged)
Edited by Désirée Chevalier