test: adopt macOS-safe real-Obsidian sessions

This commit is contained in:
vorotamoroz committed 2026-07-20 08:54:20 +00:00
1 parent 0c3c5db6c1
commit e79686d275
11 files changed
+124 -12

No files matched your search

+2 -1
View File
@@ -11,6 +11,7 @@ import {
type CouchDbConfig,
} from "../runner/couchdb.ts";
import { discoverObsidianCli, requireObsidianBinary } from "../runner/environment.ts";
import { waitForExactCaseOnlyRename } from "../runner/pathAssertions.ts";
import {
assertEqual,
assertE2eCompatibilityMarker,
@@ -404,7 +405,7 @@ async function runCaseOnlyRename(
session = await startConfiguredSession(context, vaultB);
await syncAndApply(context, session);
const renamedOnB = await waitForPathContent(vaultB.path, caseRenameToPath, (content) => content === fileContent);
await waitForPathDeleted(vaultB.path, caseRenameFromPath);
await waitForExactCaseOnlyRename(vaultB.path, caseRenameFromPath, caseRenameToPath);
await session.app.stop();
assertEqual(renamedOnB, fileContent, "Case-only note rename did not round-trip to the second vault.");