AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.
HTML ai-agentcloudflarecloudflare-d1cloudflare-r2cloudflare-workersdockerelectronevernoteevernote-alternativeknowledge-basemcpnote-takingobsidian-alternativeoffline-firstpersonal-knowledge-basepwaself-hostedsqlitetiptapweb-clipper
test: align mobile metadata save scope with confirmation flow
tianma-if04a6de6b4786
diff --git a/tests/mobile-app-scope.test.ts b/tests/mobile-app-scope.test.tsindex 1a384ef4..644063d5 100644--- a/tests/mobile-app-scope.test.ts+++ b/tests/mobile-app-scope.test.ts@@ -220,7 +220,14 @@ describe("mobile app scope", () => {test("lets view-mode change the note notebook without entering the editor", () => {expect(memoDetailSource).toContain('setViewerNotebookPickerOpen(true)');- expect(memoDetailSource).toContain("payload: { notebookId: nextNotebookId }");+ const selectNotebookSource = memoDetailSource.slice(+ memoDetailSource.indexOf("const handleViewerNotebookSelect ="),+ memoDetailSource.indexOf("const openViewerTags =")+ );+ expect(selectNotebookSource).toContain("setViewerNotebookId(nextNotebookId)");+ expect(selectNotebookSource).not.toContain("mutateAsync");+ expect(memoDetailSource).toContain("payload: { notebookId: viewerNotebookId, tags: viewerTags }");+ expect(memoDetailSource).toContain("onPress={() => void saveViewerMetadata()}");expect(memoDetailSource).toContain("includeAllNotes={false}");expect(memoDetailSource).toContain('accessibilityLabel="所在笔记本"');expect(memoDetailSource).toContain("handleViewerNotebookSelect");