Last Updated: 2024-03-02
I could not get a Selenium browser test that checked a check box to work.
The trick, in the end was adding
check 'toggle_tutor_visibility', allow_label_click: true
This is needed because, due to custom CSS styling, often the checkbox element itself is invisible and only the label is visible. If the element is invisible, it cannot normally be operated by Selenium. Therefore we allow a substitution of clicking on the label.