mirror of
https://github.com/oxynote/oxynote.git
synced 2026-10-17 10:59:20 +02:00
fix tag tree unit test
This commit is contained in:
parent
cad77d3ee9
commit
b4e4fef9f4
|
|
@ -511,6 +511,13 @@ describe("<NameEditor>", { 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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user