Changeset View
Changeset View
Standalone View
Standalone View
cypress/integration/origin-visits.spec.js
Show All 25 Lines | function searchInCalendar(date) { | ||||
cy.get(`.year${date.year}`) | cy.get(`.year${date.year}`) | ||||
.click({force: true}); | .click({force: true}); | ||||
cy.contains('.month', date.monthName) | cy.contains('.month', date.monthName) | ||||
.find('.day-content') | .find('.day-content') | ||||
.eq(date.date - 1) | .eq(date.date - 1) | ||||
.trigger('mouseenter') | .trigger('mouseenter') | ||||
.get('.popover-body') | .get('.popover-body') | ||||
.should('be.visible') | .should('be.visible') | ||||
.and('contain', `${date.hours}:${date.minutes} UTC`); | .and('contain', `${date.hours}:${date.minutes}:${date.seconds} UTC`); | ||||
} | } | ||||
describe('Visits tests', function() { | describe('Visits tests', function() { | ||||
before(function() { | before(function() { | ||||
origin = this.origin[1]; | origin = this.origin[1]; | ||||
}); | }); | ||||
beforeEach(function() { | beforeEach(function() { | ||||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |