tests: Fix off-by-one bug in `timeslider_follow.js`

rhansen-sendkeys
Richard Hansen 2021-08-21 00:53:14 -04:00 committed by SamTV12345
parent 4d6ec1909a
commit 75591c9946
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ describe('timeslider follow', function () {
// send 6 revisions // send 6 revisions
const revs = 6; const revs = 6;
const message = 'a\n\n\n\n\n\n\n\n\n\n'; const message = 'a\n\n\n\n\n\n\n\n\n\n';
const newLines = message.split('\n').length; const newLines = message.split('\n').length - 1;
for (let i = 0; i < revs; i++) { for (let i = 0; i < revs; i++) {
await helper.edit(message, newLines * i + 1); await helper.edit(message, newLines * i + 1);
} }