From c29b7eb06c19d27029bfde95457827f47c877d22 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 15 Aug 2016 02:35:26 -0400 Subject: [PATCH] Maybe fix spurious error in noteeditor tests --- test/tests/noteeditorTest.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/tests/noteeditorTest.js b/test/tests/noteeditorTest.js index 04ae3cde04..1b61f7e2fa 100644 --- a/test/tests/noteeditorTest.js +++ b/test/tests/noteeditorTest.js @@ -8,6 +8,11 @@ describe("Note Editor", function () { zp = win.ZoteroPane; }); + beforeEach(function* () { + // Avoid "this._editor is undefined" error between tests + yield Zotero.Promise.delay(1); + }); + after(function () { win.close(); });