#Credit Card Components suddenly allow whitespace cardholder
1 messages · Page 1 of 1 (latest)
@west parcel
The constraints on components was changed recently, so this might be a sideeffect of this.
ok thanks , will it come back? should i activate the test again or is it gone now?
Hi Christian
We have indeed released some enhancements to the CC components field in order to optimise cards performance. A simple whitespace or a series of numbers only are no longer allowed.
thats funny @west parcel
because my cypress test was originally testing that whitespaces are NOT allowed
now it IS allowed. i manually checked it. if i just leave the card holder name, it works
Oh interesting find. Let me get back to you on this. Looking into it now/
@marble heron i am currently testing it and i get an FE validation error with whitespace. Are you entering whitespaces or leaving the field blank altogether?
hi, its a whitespace
you can see it in line 110, and the previous expected error in 120
https://github.com/mollie/Shopware6/blob/master/tests/Cypress/cypress/e2e/storefront/payment-methods/creditcard.cy.js
that test failed, and when i tested it manually i was able to reach the mollie payment page
Ah i see. Ok so what we did was to add additional Front-end validation in components so that a user does not go all the way to submitting their card details only to be told from the backend that their details are not valid (in this case that the Cardholder cannot be empty). So now the check happens in the frontend as well. So i think the test should now assert on Components error. assertComponentErrors(false, true, true, true); (i think although i am no proficient with Cypress.
but the problem is that an empty cardholder name with whitespace is valid from your JS compnents and brought me to the payment page
that is the actual problem,
let me just run it again and see if its still happening
Could you take me through the steps on how you are able to reproduce it manually please? I have tried on multiple orgs in both test and live and I am not ever able to submit a card form with an empty space in the card holder name. Having the repro steps will ensure i am mirroring the same situation as yours.
its working again, so now i get a successful (and different) message
when i wrote this issue, cypress and my manual test showed it was redirected to the mollie payge
i also see that theres a min 3 letters now? thats probably what you meant by extending verification...
so seems good now, maybe small hicups (i usually know quite fast if sth has deployed at the mollie side that changes things :D)
My apologies about this. We should have posted this forum indeed. We will make sure to be more diligent in the future. Let me know if you see any other issues with this validations. Thanks!