diff --git a/test/cypress/support/commands.js b/test/cypress/support/commands.js index 5fc54ecabdf..84dab231c3e 100755 --- a/test/cypress/support/commands.js +++ b/test/cypress/support/commands.js @@ -480,8 +480,9 @@ Cypress.Commands.add('checkNumber', (text, expectedVal, operation) => { }); Cypress.Commands.add('checkDate', (rawDate, expectedVal, operation) => { - const date = moment(rawDate.trim(), 'DD/MM/YYYY'); + const date = moment(rawDate.trim(), 'MM/DD/YYYY'); const compareDate = moment(expectedVal, 'DD/MM/YYYY'); + switch (operation) { case 'equal': expect(text.trim()).to.equal(compareDate);