Fix item pane buttons after CEification

Fixes #4115
This commit is contained in:
windingwind 2024-05-14 16:55:52 +08:00 committed by Dan Stillman
parent 9a23031c12
commit bc47ee46c8
3 changed files with 37 additions and 22 deletions

View file

@ -856,7 +856,7 @@ describe("Zotero.ItemTree", function() {
yield itemsView.selectItem(attachment.id);
yield Zotero.Promise.delay();
var box = win.document.getElementById('zotero-item-pane-my-publications-button');
var box = zp.itemPane.getCurrentPane().querySelector('.item-pane-my-publications-button');
assert.isFalse(box.hidden);
});
@ -872,7 +872,7 @@ describe("Zotero.ItemTree", function() {
yield itemsView.selectItem(attachment.id);
var box = win.document.getElementById('zotero-item-pane-my-publications-button');
var box = zp.itemPane.getCurrentPane().querySelector('.item-pane-my-publications-button');
// box is not created if it shouldn't show
assert.isNull(box);
});