I have this element
<label for="prod-field">Project <span class="aui-icon">Required</span> </label> I want to check if Label text is equal to Project
cy.get('[for="prod-field"]').should('have.text', 'Project') but the result is
-'ProjectRequired' +'Project' so this selector take also span...
How can i select them independently and check?