I know Cypress team encourage to use actions instead of page objects, so which would be the best choice when having to reuse an element?
I don't want to be updating a selector in many places so I went for this option:
Cypress.Commands.add('getStartDateInput',() => cy.get('input[t-selector="startDate"]');
So If I have to interact with this element in some other places I will just call this new action. Even though this is leading me to have many new 'mini' actions like this in my commands file just in order to not have to update selectors in many places.
Am I doing it right? Any other suggestion?