trying to add a delay to allow browsers to catch up with responsiveness test

testing-something-on-resposiveness-test
John McLear 2020-09-26 23:05:23 +01:00
parent 411b278881
commit 37968db022
1 changed files with 3 additions and 2 deletions

View File

@ -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);
});