fix: harden quest poi filtering and objective refresh

This commit is contained in:
Xurkon
2026-06-13 08:30:41 -05:00
parent 12b30cd566
commit 8898dcf96a
5 changed files with 165 additions and 2 deletions
@@ -15,7 +15,7 @@ describe("Blizzard objective POI suppression", function()
local iconOptions = read("Modules/Options/IconsTab/QuestieOptionsIcons.lua")
local questieMenu = read("Modules/QuestieMenu/QuestieMenu.lua")
it("suppresses only native POI buttons that duplicate visible Questie quest icons", function()
it("suppresses native POI buttons that duplicate visible or intentionally hidden Questie quest icons", function()
local helperStart = assert(compat:find("function QuestieCompat.HasVisibleQuestiePOIForQuest", 1, true))
local helperEnd = assert(compat:find("-- https://wowpedia.fandom.com/wiki/API_GetQuestLink", helperStart, true))
local helper = compat:sub(helperStart, helperEnd)
@@ -28,6 +28,12 @@ describe("Blizzard objective POI suppression", function()
assert.is_true(has(compat, "frame:ShouldBeHidden()"))
assert.is_true(has(helper, "QuestieMap.questIdFrames and QuestieMap.questIdFrames[questId]"))
assert.is_true(has(helper, "poiButton:Hide()"))
assert.is_true(has(helper, "function QuestieCompat.ShouldSuppressHiddenQuestieAvailablePOI"))
assert.is_true(has(helper, "profile.hideRepeatableBelowMaxLevel"))
assert.is_true(has(helper, "QuestieDB.IsBoardQuest"))
assert.is_true(has(helper, "profile.showDungeonQuests"))
assert.is_true(has(helper, "questTagId == 81"))
assert.is_true(has(helper, "QuestieCompat.HasVisibleQuestiePOIForQuest(questId) or QuestieCompat.ShouldSuppressHiddenQuestieAvailablePOI(questId, poiButton)"))
end)
it("hooks Blizzard POI display without globally disabling native POIs", function()