Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Assert effective tab title style cleanup https://github.com/siyuan-note/siyuan/issues/20482

Daniel66ae69a828bc
diff --git a/app/tests/tabsFocus.test.js b/app/tests/tabsFocus.test.js
index 4a27cbb270..0b3c045948 100644
--- a/app/tests/tabsFocus.test.js
+++ b/app/tests/tabsFocus.test.js
@@ -224,7 +224,8 @@ const cases = async (source) => {
check.equal(replayItem.hasAttribute("data-tabs-hidden"), false);
check.notEqual(getComputedStyle(replayItem).display, "none");
check.equal(replayInfo.classList.contains("tabs-title-editor"), false);
- check.equal(replayInfo.hasAttribute("style"), false);
+ // 空样式属性不影响布局,确认回放注入的定位声明已被清除。
+ check.equal(replayInfo.style.cssText, "");
replayItem.querySelector(".tab-item-content > [data-node-id]").dispatchEvent(
new MouseEvent("contextmenu", {bubbles: true, cancelable: true}));
check.equal(genericContextMenus, 1);