Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

test: stabilize release regression gates

tianma-if08f645686dd7
diff --git a/apps/web/src/components/DiagramEditorPane.test.mjs b/apps/web/src/components/DiagramEditorPane.test.mjs
index e015e860..a5f4d6ac 100644
--- a/apps/web/src/components/DiagramEditorPane.test.mjs
+++ b/apps/web/src/components/DiagramEditorPane.test.mjs
@@ -151,7 +151,8 @@ describe("diagram editor canvas surface", () => {
expect(source).toContain("EDITOR_LOCAL_SAVE_DELAY_MS");
expect(source).toContain("window.setTimeout(() => saveRef.current(), EDITOR_LOCAL_SAVE_DELAY_MS)");
expect(source).toContain("nodeEditor !== null");
- expect(source).toContain("[dirtyVersion, editSessionReady, editorDirty, nodeEditor, readOnly, saveFailed, saving]");
+ expect(source).toContain("outlineError || outlinePendingBulk || nodeEditor !== null");
+ expect(source).toContain("[dirtyVersion, editSessionReady, editorDirty, nodeEditor, outlineError, outlinePendingBulk, readOnly, saveFailed, saving]");
expect(source).toContain("tags: nextTags");
expect(source).toContain("setTagsDirty(hasNewTagChanges)");
expect(source).toContain("!readOnly && saveFailed");
diff --git a/apps/web/src/components/settings/PluginManagerCard.test.mjs b/apps/web/src/components/settings/PluginManagerCard.test.mjs
index 844221ba..721d6e42 100644
--- a/apps/web/src/components/settings/PluginManagerCard.test.mjs
+++ b/apps/web/src/components/settings/PluginManagerCard.test.mjs
@@ -33,7 +33,7 @@ describe("plugin manager card layout", () => {
test("keeps marketplace description below the title row instead of beside header actions", () => {
expect(source).toContain("{t(\"plugins.syncDescription\")}");
- expect(source).toContain('<div className="flex items-center justify-between gap-3">');
+ expect(source).toContain('<div className="flex flex-wrap items-center justify-between gap-x-3 gap-y-2">');
expect(source).toContain('<p className="text-xs leading-5 text-slate-500">{t("plugins.syncDescription")}</p>');
expect(source).not.toContain("flex items-start justify-between gap-3");
});
diff --git a/apps/web/src/lib/plugins/plugin-marketplace.ts b/apps/web/src/lib/plugins/plugin-marketplace.ts
index d6dfe14d..508d61f6 100644
--- a/apps/web/src/lib/plugins/plugin-marketplace.ts
+++ b/apps/web/src/lib/plugins/plugin-marketplace.ts
@@ -13,7 +13,7 @@ export const loadPluginMarketplace = async (
registryUrl = DEFAULT_PLUGIN_REGISTRY_URL,
request: typeof fetch = window.fetch.bind(window),
baseUrl = import.meta.env.BASE_URL,
- locationHref = window.location.href,
+ locationHref = globalThis.window?.location?.href ?? "http://localhost/",
): Promise<MarketplaceRegistry> => {
const url = resolveAppAssetUrl(registryUrl, baseUrl, locationHref);
const response = await request(url, { cache: "no-store", credentials: "omit" });
diff --git a/tests/deployment-entrypoints.test.ts b/tests/deployment-entrypoints.test.ts
index cb266486..54041db2 100644
--- a/tests/deployment-entrypoints.test.ts
+++ b/tests/deployment-entrypoints.test.ts
@@ -837,7 +837,7 @@ describe("Cloudflare deployment entrypoints", () => {
} finally {
rmSync(workingDirectory, { force: true, recursive: true });
}
- });
+ }, 20_000);
test("public deployment documentation exposes only Fork and Agent paths", () => {
const englishReadme = readRepositoryFile("README.md");
diff --git a/tests/mobile-app-scope.test.ts b/tests/mobile-app-scope.test.ts
index 74851d93..abdc3512 100644
--- a/tests/mobile-app-scope.test.ts
+++ b/tests/mobile-app-scope.test.ts
@@ -172,12 +172,12 @@ describe("mobile app scope", () => {
expect(iosLocalMirrorSource).not.toContain("json_each(mobile_memos.data_json");
});
- test("keeps Android memo list motion and spring feedback", () => {
- expect(notesViewSource).toContain("FadeInDown.duration(260).springify().damping(18)");
- expect(notesViewSource).toContain("FadeOutUp.duration(220)");
- expect(notesViewSource).toContain("LinearTransition.duration(220)");
- expect(notesViewSource).toContain("pressScale.value = withTiming(0.985");
- expect(notesViewSource).toContain("pressScale.value = withTiming(1");
+ test("keeps Android memo list interactions free of spring and press-scale motion", () => {
+ expect(notesViewSource).not.toContain("springify()");
+ expect(notesViewSource).not.toContain("FadeInDown");
+ expect(notesViewSource).not.toContain("FadeOutUp");
+ expect(notesViewSource).not.toContain("LinearTransition");
+ expect(notesViewSource).not.toContain("pressScale.value");
});
test("hardens DOM/WebView hosts against media capture probes during App Review", () => {