Skip to content

Commit

Permalink
test(cypress): fix month names
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
  • Loading branch information
blizzz committed Jun 4, 2024
1 parent 12c65f8 commit f1247c8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cypress/e2e/column-datetimeDate.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ describe('Test column ' + columnTitle, () => {
cy.get('.modal__content input').first().should('contain.value', date)
cy.get('[data-cy="createRowAddMoreSwitch"]').click().click()
cy.get('button').contains('Save').click()
const monthNames = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'June',
'July', 'Aug', 'Sept', 'Oct', 'Nov', 'Dec']
const monthNames = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
const datetime2 = new Date().getDate() + ' ' + monthNames[new Date().getMonth()] + ' ' + new Date().getFullYear()
cy.log(datetime2)
cy.get('.custom-table table tr td div').contains(new Date().getDate()).should('be.visible')
Expand Down

0 comments on commit f1247c8

Please sign in to comment.