Skip to content

Commit

Permalink
restore startimer event spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigo Quelca committed Sep 14, 2023
1 parent bfe78a6 commit ce813fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/e2e/specs/StartTimerEvent.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('Start Timer Event', () => {
cy.get('.vdpMinutesInput').type('300');
cy.get('.vdp12HourToggleBtn').click();
// //compare date and hours to avoid the problems caused when there are some seconds of delay
cy.get('[data-test=start-date-picker] > input').should('contain.value', expectedStartDate.substr(0, 13));
cy.get('[data-test=start-date-picker] > input').should('contain.value', expectedStartDate.substr(0, 14));
});

it('can set a specific end date', () => {
Expand All @@ -51,11 +51,11 @@ describe('Start Timer Event', () => {
cy.get('[data-test=ends-on]').click('left', { force: true });
cy.get('[data-test=end-date-picker]').click();
// //compare date and hours to avoid the problems caused when there are some seconds of delay
cy.get('[data-test=end-date-picker] > input').should('contain.value', expectedEndDate.substr(0, 13));
cy.get('[data-test=end-date-picker] > input').should('contain.value', expectedEndDate.substr(0, 14));
cy.get('.paper-container').click( { force: true } );
getElementAtPosition(startTimerEventPosition).click();
cy.contains('Timing Control').click();
cy.get('[data-test=end-date-picker] > input').should('contain.value', expectedEndDate.substr(0, 13));
cy.get('[data-test=end-date-picker] > input').should('contain.value', expectedEndDate.substr(0, 14));
});

it('checks that the timer expressions are correctly formatted', () => {
Expand Down

0 comments on commit ce813fe

Please sign in to comment.