From b4e4fef9f44ae56b6800e8086cae622947f55306 Mon Sep 17 00:00:00 2001 From: david <58231312+davseby@users.noreply.github.com> Date: Sat, 5 Sep 2026 15:30:11 +0300 Subject: [PATCH] fix tag tree unit test --- web/app/components/editor/NameEditor.nuxt.test.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/web/app/components/editor/NameEditor.nuxt.test.ts b/web/app/components/editor/NameEditor.nuxt.test.ts index cd194407..44d98670 100644 --- a/web/app/components/editor/NameEditor.nuxt.test.ts +++ b/web/app/components/editor/NameEditor.nuxt.test.ts @@ -511,6 +511,13 @@ describe("", { concurrent: false }, () => { `/api/documents/${DOCUMENT_ID}/branches/${TARGET_BRANCH_ID}/reviewers`, () => [], ) + // the header's tag queries are invalidated along with them + mockEndpoint("GET", "/api/tags/tree", () => []) + mockEndpoint( + "GET", + `/api/documents/${DOCUMENT_ID}/branches/${BRANCH_ID}/tags`, + () => [], + ) const wrapper = await mountEditor() await openActionMenu(wrapper) menuItem(t("editor.name-editor.review-workflow.merge.title")).click()