I am currently doing an integration test with Cypress and there is a point where I don't know how to solve in the proper way (meaning that I don't want to use the cypress selector tool in order to get a certain element within the DOM)
The situation being that I work with a 'in-house' styling library, therefore my go-to blogs and such is a bit limited. As an example of many, I have a checkbox like below:
<RadioButton
left={{
label: 'yes',
value: true,
}}
right={{
label: 'no',
value: false,
}}
/>
If I add an id to this component, cypress will find one element, which makes it impossible to afterwards ask to 'click' in one of them to test what happens when the state is changed.
Any idea on how can I approach this issue?