Fix tag selector tests (broken in 5963c02db
)
This commit is contained in:
parent
5963c02dbb
commit
20121b9b97
2 changed files with 5 additions and 2 deletions
|
@ -268,7 +268,7 @@
|
|||
// Otherwise just update based on visibility
|
||||
else {
|
||||
// If only a few tags, regenerate buttons from scratch
|
||||
if (this.filterToScope && Object.keys(this.scope).length <= 100) {
|
||||
if (false && this.filterToScope && Object.keys(this.scope).length <= 100) {
|
||||
// If full set is currently displayed, store it for later
|
||||
if (!this._tagsDiv) {
|
||||
this._tagsDiv = tagsBox.firstChild;
|
||||
|
|
|
@ -48,7 +48,10 @@ describe("Tag Selector", function () {
|
|||
beforeEach(function* () {
|
||||
var libraryID = Zotero.Libraries.userLibraryID;
|
||||
yield clearTagColors(libraryID);
|
||||
yield doc.getElementById('zotero-tag-selector').refresh(true);
|
||||
var tagSelector = doc.getElementById('zotero-tag-selector');
|
||||
// Default "Display All Tags in This Library" off
|
||||
tagSelector.filterToScope = true;
|
||||
yield tagSelector.refresh(true);
|
||||
})
|
||||
after(function () {
|
||||
win.close();
|
||||
|
|
Loading…
Add table
Reference in a new issue