Fix tests after 42667e7090
It seems like the Zotero.Utilities.debounce() on handleSearch() in tagSelector.jsx was somehow causing the function to be run without being triggered from the onSearch events, resulting in an extra render. I'm not sure why that was happening, but it's fixed now that there's no longer a debounce() there.
This commit is contained in:
parent
62ea7e970a
commit
03941dafe0
1 changed files with 2 additions and 5 deletions
|
@ -200,12 +200,9 @@ describe("Tag Selector", function () {
|
|||
}
|
||||
|
||||
// Add item with tag to library root
|
||||
promise = waitForTagSelector(win);
|
||||
var item = await createDataObject('item');
|
||||
await promise
|
||||
|
||||
var tagA = Zotero.Utilities.randomString();
|
||||
var tagB = Zotero.Utilities.randomString();
|
||||
var item = createUnsavedDataObject('item');
|
||||
item.setTags([
|
||||
{
|
||||
tag: tagA
|
||||
|
@ -421,7 +418,7 @@ describe("Tag Selector", function () {
|
|||
var tag2 = Zotero.Utilities.randomString();
|
||||
var item1 = createUnsavedDataObject('item', { tags: [{ tag: tag1 }] });
|
||||
var item2 = createUnsavedDataObject('item', { tags: [{ tag: tag2 }] });
|
||||
var promise = waitForTagSelector(win, 2);
|
||||
var promise = waitForTagSelector(win);
|
||||
await Zotero.DB.executeTransaction(async function () {
|
||||
await item1.save();
|
||||
await item2.save();
|
||||
|
|
Loading…
Reference in a new issue