Fix New Collection test
This commit is contained in:
parent
99b0411857
commit
fbd8db3c8e
1 changed files with 5 additions and 1 deletions
|
@ -57,7 +57,11 @@ describe("ZoteroPane", function() {
|
||||||
|
|
||||||
describe("#newCollection()", function () {
|
describe("#newCollection()", function () {
|
||||||
it("should create a collection", function* () {
|
it("should create a collection", function* () {
|
||||||
var promise = waitForDialog();
|
var promise = waitForDialog(
|
||||||
|
null,
|
||||||
|
'accept',
|
||||||
|
'chrome://zotero/content/newCollectionDialog.xhtml'
|
||||||
|
);
|
||||||
var id = yield zp.newCollection();
|
var id = yield zp.newCollection();
|
||||||
yield promise;
|
yield promise;
|
||||||
var collection = Zotero.Collections.get(id);
|
var collection = Zotero.Collections.get(id);
|
||||||
|
|
Loading…
Reference in a new issue