Note editor test tweaks, which may or may not fix Travis failures
This commit is contained in:
parent
8f0ed56ae2
commit
a114309625
|
@ -9,8 +9,9 @@ describe("Note Editor", function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(function* () {
|
beforeEach(function* () {
|
||||||
// Avoid "this._editor is undefined" error between tests
|
// Avoid "this._editor is undefined" error between tests,
|
||||||
yield Zotero.Promise.delay(1);
|
// though there's definitely a better way to fix this
|
||||||
|
yield Zotero.Promise.delay(50);
|
||||||
});
|
});
|
||||||
|
|
||||||
after(function () {
|
after(function () {
|
||||||
|
@ -26,6 +27,8 @@ describe("Note Editor", function () {
|
||||||
var tagsBox = linksBox.id('tagsPopup').firstChild;
|
var tagsBox = linksBox.id('tagsPopup').firstChild;
|
||||||
var tagRows = tagsBox.id('tagRows');
|
var tagRows = tagsBox.id('tagRows');
|
||||||
assert.equal(tagRows.childNodes.length, 1);
|
assert.equal(tagRows.childNodes.length, 1);
|
||||||
|
|
||||||
|
linksBox.id('tagsPopup').hidePopup();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should only open one new row for editing", function* () {
|
it("should only open one new row for editing", function* () {
|
||||||
|
@ -41,6 +44,8 @@ describe("Note Editor", function () {
|
||||||
var tagsBox = linksBox.id('tagsPopup').firstChild;
|
var tagsBox = linksBox.id('tagsPopup').firstChild;
|
||||||
var tagRows = tagsBox.id('tagRows');
|
var tagRows = tagsBox.id('tagRows');
|
||||||
assert.equal(tagRows.childNodes.length, 1);
|
assert.equal(tagRows.childNodes.length, 1);
|
||||||
|
|
||||||
|
linksBox.id('tagsPopup').hidePopup();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should show tags in alphabetical order", function* () {
|
it("should show tags in alphabetical order", function* () {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user