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

pull/4183/head
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
1 changed files with 4 additions and 1 deletions

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