From 095ff2a85eb4e27da4296dcb7452a7b5027a7cc2 Mon Sep 17 00:00:00 2001 From: ChrisZie Date: Thu, 29 Oct 2020 19:29:46 +0800 Subject: [PATCH] Add open ToDo to the wait() --- cypress/integration/advanced.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/integration/advanced.spec.js b/cypress/integration/advanced.spec.js index fb32698..669a6ce 100644 --- a/cypress/integration/advanced.spec.js +++ b/cypress/integration/advanced.spec.js @@ -24,7 +24,7 @@ describe('Advanced Challenge', () => { // Click the 'next' button to switch the next month in the calendar cy.get('.rbc-btn-group').children().last() .click() - .wait(500); + .wait(500); // ToDo: Find a better way to check or wait here // Conditional testing with Cypress is not as easy as it should be see here: https://docs.cypress.io/guides/core-concepts/conditional-testing.html // As we do not reset the database for every test, there may be no room available for the period shown --> In this case the test clicks 'next' to go to the next month