From 3cb043abd014750dfd90c76b6b8757baa01ce43c Mon Sep 17 00:00:00 2001 From: vorotamoroz Date: Sun, 19 Jul 2026 12:19:06 +0000 Subject: [PATCH] Clarify target filter E2E sequence --- test/e2e-obsidian/scripts/two-vault-sync.ts | 23 +++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/test/e2e-obsidian/scripts/two-vault-sync.ts b/test/e2e-obsidian/scripts/two-vault-sync.ts index 74b8ba3b..1911ce49 100644 --- a/test/e2e-obsidian/scripts/two-vault-sync.ts +++ b/test/e2e-obsidian/scripts/two-vault-sync.ts @@ -497,6 +497,23 @@ async function runTargetMismatch( ); await session.app.stop(); + session = await startConfiguredSession(context, vaultB, { + syncOnlyRegEx: "", + }); + await syncAndApply(context, session); + const reflectedAfterEnabling = await waitForPathContent( + vaultB.path, + targetMismatchPath, + (content) => content === ignoredContent + ); + await session.app.stop(); + + assertEqual( + reflectedAfterEnabling, + ignoredContent, + "Target file was not reflected after the device accepted the path." + ); + session = await startConfiguredSession(context, vaultA); await writeNoteViaObsidian(context.cliBinary, session.cliEnv, targetMismatchPath, acceptedContent); await uploadNote(context, session, targetMismatchPath); @@ -513,8 +530,10 @@ async function runTargetMismatch( ); await session.app.stop(); - assertEqual(received, acceptedContent, "Target file was not reflected after the device accepted the path."); - console.log("Two-vault target mismatch skipped a non-target note, then reflected it after enabling the target."); + assertEqual(received, acceptedContent, "Target file update was not reflected after the device accepted the path."); + console.log( + "Two-vault target mismatch skipped a non-target note, reflected it after enabling the target, and accepted a later update." + ); } async function main(): Promise {