tests: fix follow test to work on larger screens (#4182)

This commit is contained in:
John McLear 2020-07-20 00:09:33 +01:00 committed by GitHub
parent 2a28ff8526
commit bf295d42d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,13 +11,16 @@ describe("timeslider", function(){
// make some changes to produce 100 revisions
var timePerRev = 900
, revs = 5;
, revs = 10;
this.timeout(revs*timePerRev+10000);
for(var i=0; i < revs; i++) {
setTimeout(function() {
// enter 'a' in the first text element
inner$("div").last().sendkeys('a\n');
inner$("div").last().sendkeys('{enter}');
inner$("div").last().sendkeys('{enter}');
inner$("div").last().sendkeys('{enter}');
inner$("div").last().sendkeys('{enter}');
}, timePerRev*i);
}