From 27f9057da909df00a066c8d14193d2e23a5fc0f1 Mon Sep 17 00:00:00 2001 From: ChrisZie Date: Thu, 29 Oct 2020 20:52:17 +0800 Subject: [PATCH] change 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 669a6ce..a928bfd 100644 --- a/cypress/integration/advanced.spec.js +++ b/cypress/integration/advanced.spec.js @@ -34,7 +34,7 @@ describe('Advanced Challenge', () => { if ($body.find("div.rbc-event-content").length > 0) { // There are some dates not available for the room cy.get('.rbc-btn-group').children().last() .click() - .wait(800); // Need to wait for the 'unaviable'-label to appear --> ToDo: Find a better way to wait for an element that might not be there + .wait(500); // Need to wait for the 'unaviable'-label to appear --> ToDo: Find a better way to wait for an element that might not be there } else { i = 15; // Set the counter to 15 to continue the test as there are dates available