Add a note to a strange test

stable
David Barragán Merino 2016-06-16 14:21:47 +02:00
parent 96cbe558ab
commit 858fdeb5b8
2 changed files with 3 additions and 1 deletions

View File

@ -41,7 +41,7 @@ helper.links = function() {
helper.dragAndDropLinks = async function(indexFrom, indexTo) { helper.dragAndDropLinks = async function(indexFrom, indexTo) {
let selectedLink = helper.links().get(indexFrom); let selectedLink = helper.links().get(indexFrom);
let newPosition = helper.links().get(indexTo); let newPosition = helper.links().get(indexTo).getLocation();
return utils.common.drag(selectedLink, newPosition); return utils.common.drag(selectedLink, newPosition);
}; };

View File

@ -25,6 +25,8 @@ describe('wiki', function() {
await wikiHelper.dragAndDropLinks(0, 1); await wikiHelper.dragAndDropLinks(0, 1);
// NOTE: Thre is a strange scroll and we have to take the
// fifth element instead of the second.
let nameNew = await wikiHelper.links().getNameOf(4); let nameNew = await wikiHelper.links().getNameOf(4);
expect(nameNew).to.be.equal(nameOld); expect(nameNew).to.be.equal(nameOld);