You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One label is visible and the other is hidden. This makes testing difficult.
If you use the capybara check 'Approve' matcher, it fails saying "2 matching elements found". As a workaround you can use find('label', text: 'Approve', match: :first).click. It also seems not very accessible to have two labels for the same input.
But if you remove the first one, the label is invisible. If you remove the other, the switch is invisible. So I can see how this issue arose, but there must be an accessible way to implement this.
The text was updated successfully, but these errors were encountered:
One label is visible and the other is hidden. This makes testing difficult.
If you use the capybara
check 'Approve'
matcher, it fails saying "2 matching elements found". As a workaround you can usefind('label', text: 'Approve', match: :first).click
. It also seems not very accessible to have two labels for the same input.The code does add label twice:
But if you remove the first one, the label is invisible. If you remove the other, the switch is invisible. So I can see how this issue arose, but there must be an accessible way to implement this.
The text was updated successfully, but these errors were encountered: