Fix New Collection test

This commit is contained in:
Abe Jellinek 2024-01-16 14:45:16 -05:00 committed by Dan Stillman
parent 99b0411857
commit fbd8db3c8e

View file

@ -57,7 +57,11 @@ describe("ZoteroPane", function() {
describe("#newCollection()", 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();
yield promise;
var collection = Zotero.Collections.get(id);