Is there a way to create a method in Cypress that displays today's date in "June 21" format and ensures that the date obtained from new Date() is not visible in the test?
Here is an example of code (with typos):
const today = new Date(some format);
cy.contains(today).should('not.visible');
Could the date-fns library be used for this purpose?
Appreciate your help.