I'm creating a Cypress test to my rest call API. Anyways I need to verify a date format, for example, in my JSON Response I have:
"documentDate": "2022-01-28"
So, with that i need to verify the date format not its value. There is a way on Cypress "expect" to verify that? Idk, maybe something like:
expect(documentDate)to.have.format('yyyy-MM-dd');
If anyone can help me, it will be great.
Thanks.