Add a note to a strange test
parent
96cbe558ab
commit
858fdeb5b8
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue