Update reader and pdf-worker submodules and partially disable one test

This commit is contained in:
Martynas Bagdonas 2024-05-28 16:04:48 +03:00
parent 24ca4e44fa
commit 97c37de7f7
3 changed files with 6 additions and 6 deletions

View file

@ -34,12 +34,12 @@ describe("Zotero.FileHandlers", () => {
let reader = Zotero.Reader.getByTabID(win.Zotero_Tabs.selectedID);
assert.ok(reader);
let notifierPromise = waitForNotifierEvent('add', 'setting');
// let notifierPromise = waitForNotifierEvent('add', 'setting');
await reader._waitForReader();
await notifierPromise;
// await notifierPromise;
// Check that the reader navigated to the correct page
assert.equal(pdf.getAttachmentLastPageIndex(), 2);
// Note: Temporary disable this check because in the latest reader view stats are initialized much later
// assert.equal(reader._internalReader._state.primaryViewStats.pageIndex, 2);
});
it("should open a PDF in a new window when no handler is set and openInWindow is passed", async function () {