diff --git a/test/content/support.js b/test/content/support.js index dcab615f7..2f3ebf714 100644 --- a/test/content/support.js +++ b/test/content/support.js @@ -293,6 +293,16 @@ function generateAllTypesAndFieldsData() { lastName: typeName + 'Last' }); } + + // Also add a single-field mode author, which is valid for all types + let primaryCreatorType = Zotero.CreatorTypes.getName( + Zotero.CreatorTypes.getPrimaryIDForType(itemTypes[i].id) + ); + creators.push({ + creatorType: primaryCreatorType, + lastName: 'Institutional Author', + fieldMode: 1 + }); } return data; @@ -315,8 +325,13 @@ function populateDBWithSampleData(data) { let creators = item[itemField]; for (let i=0; i