From d69a1a65ee4f4ddada667d88ead903d9ed6a8ceb Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Thu, 14 Aug 2025 17:52:28 -0400 Subject: [PATCH] Fix intermittent context pane toggle test failure Hopefully. --- test/tests/itemPaneTest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/tests/itemPaneTest.js b/test/tests/itemPaneTest.js index 375cd17df3..51887d1f36 100644 --- a/test/tests/itemPaneTest.js +++ b/test/tests/itemPaneTest.js @@ -2217,7 +2217,7 @@ describe("Item pane", function () { if ( Zotero.Reader._readers.some( - r => isVisible(r._iframe.contentDocument.querySelector('.toolbar-button.context-pane-toggle')) + r => isVisible(r._iframe.contentDocument?.querySelector('.toolbar-button.context-pane-toggle')) ) ) { return 'reader toolbar';