Skip to content

Commit

Permalink
chore: Add wait time before clicking bad answer in historyLike.cy.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Diegogtz03 committed Jun 15, 2024
1 parent dbafe25 commit cf7c6c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions knowx/cypress/e2e/history/historyLike.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@ describe("Prueba de almacenamiento de dislike en base de datos para historial",
cy.get("td").should("contain", "test3")
// Select bad answer
cy.get('button[title="action-btn-icon-1"]').click()
cy.wait(5000)
cy.get("#BadAnswer").should("not.have.class", "pointer-events-none")
cy.get("#BadAnswer").click()
// Reload window
cy.reload()
cy.wait(10000)
// Check that item is still disliked
cy.get('button[title="action-btn-icon-1"]').click()
cy.wait(5000)
cy.get("#BadAnswer").should("have.class", "pointer-events-none")
})
})
Expand Down

0 comments on commit cf7c6c3

Please sign in to comment.