From 37968db022355746bed0680f34452d7c12376cfc Mon Sep 17 00:00:00 2001 From: John McLear Date: Sat, 26 Sep 2020 23:05:23 +0100 Subject: [PATCH] trying to add a delay to allow browsers to catch up with responsiveness test --- tests/frontend/specs/responsiveness.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/frontend/specs/responsiveness.js b/tests/frontend/specs/responsiveness.js index 8938ff41b..aec1f5096 100644 --- a/tests/frontend/specs/responsiveness.js +++ b/tests/frontend/specs/responsiveness.js @@ -72,14 +72,15 @@ describe('Responsiveness of Editor', function() { } helper.waitFor(function(){ // Wait for the ability to process - return true; // Ghetto but works for now + var el = inner$('body'); + if(el[0].textContent.length > amount) return true; }).done(function(){ var end = Date.now(); // get the current time var delay = end - start; // get the delay as the current time minus the start time expect(delay).to.be.below(400); done(); - }, 1000); + }, 5000); }, 10000); });