I’m currently automating testing for an eCommerce website, I’m designing an e2e order placing test flow, at the payment details page i have my visa payment option selected, Cypress has managed to type() the card number (that was no issue) but when I get to the card expiration date date inout field which is MM/YY. When we normally type ourselves the first digit which is MM then this forward slash (/) is automatically added I’ve had found many good locators for this inout field but when Cypress tries to ty this is then my test fails and the expiration date inout field say’s that the date is invalid, here: a snipped ou my code (sorry I cannot share much as this is corporate)
/// cy.get(‘[class=”braintree-credit-card-container”]’).find(‘#braintree-hosted-field-expirationDate’).click({force: true}).type(‘5′,’2025’)///
Can someone help me out with this please I’m just not finding a workaround for this. Thanks!!