parent
9a23031c12
commit
bc47ee46c8
3 changed files with 37 additions and 22 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue