Add test for placement of creator rows in Info pane
This commit is contained in:
parent
be1c890051
commit
9783cc57c4
1 changed files with 10 additions and 0 deletions
|
@ -143,6 +143,16 @@ describe("Item pane", function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("Info pane", function () {
|
describe("Info pane", function () {
|
||||||
|
it("should place Title after Item Type and before creators", async function () {
|
||||||
|
var item = await createDataObject('item');
|
||||||
|
var itemPane = win.ZoteroPane.itemPane;
|
||||||
|
var fields = [...itemPane.querySelectorAll('.meta-label')]
|
||||||
|
.map(x => x.getAttribute('fieldname'));
|
||||||
|
assert.equal(fields[0], 'itemType');
|
||||||
|
assert.equal(fields[1], 'title');
|
||||||
|
assert.isTrue(fields[2].startsWith('creator'));
|
||||||
|
});
|
||||||
|
|
||||||
it("should refresh on item update", function* () {
|
it("should refresh on item update", function* () {
|
||||||
var item = new Zotero.Item('book');
|
var item = new Zotero.Item('book');
|
||||||
var id = yield item.saveTx();
|
var id = yield item.saveTx();
|
||||||
|
|
Loading…
Reference in a new issue