mirror of
https://github.com/zotero/zotero.git
synced 2026-09-28 01:31:40 +00:00
fx140: fix item pane test further
Should call updateLayout after changing layout Should wait for notify after saving object
This commit is contained in:
parent
0ce54e2b14
commit
08e2be9875
1 changed files with 3 additions and 0 deletions
|
|
@ -257,8 +257,10 @@ describe("Item pane", function () {
|
|||
var label = itemBox.querySelectorAll('[fieldname="series"]')[1];
|
||||
assert.equal(label.value, '');
|
||||
|
||||
let promise = waitForItemEvent('modify');
|
||||
item.setField('series', 'Test');
|
||||
await item.saveTx();
|
||||
await promise;
|
||||
|
||||
label = itemBox.querySelectorAll('[fieldname="series"]')[1];
|
||||
assert.equal(label.value, 'Test');
|
||||
|
|
@ -2239,6 +2241,7 @@ describe("Item pane", function () {
|
|||
// Make the window wide enough not to automatically enter Stacked mode
|
||||
win.resizeTo(1000, 800);
|
||||
Zotero.Prefs.set('layout', 'standard');
|
||||
ZoteroPane.updateLayout();
|
||||
|
||||
Zotero_Tabs.select('zotero-pane');
|
||||
ZoteroPane.itemPane.collapsed = false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue