Skip to content

Commit

Permalink
test: reload for deadline test
Browse files Browse the repository at this point in the history
  • Loading branch information
TetrisIQ committed Feb 25, 2022
1 parent 19107b3 commit 04211af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cypress/integration/create-poll/withSettings.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ describe('Create Poll - with Settings', () => {
cy.checkOption(1, 3, "no");

})

it('Deadline', () => {
// Click on create Poll button in header
cy.get('button').contains("Create Poll").click();
Expand All @@ -64,6 +65,8 @@ describe('Create Poll - with Settings', () => {
cy.checkOption(1, 2, "yes")
cy.updatePoll();
cy.clock(dayjs().add(2, "day").toDate())
cy.reload()
cy.wait(1000)
cy.get(".grid").find("div").should("contain.text", "is over");
})

Expand Down

0 comments on commit 04211af

Please sign in to comment.