From 50b9b2b4c0db6a5e1d9dd511d062d99ae2e11dd3 Mon Sep 17 00:00:00 2001 From: Christopher Warner Date: Sat, 10 Oct 2026 18:40:56 -0400 Subject: fix: run create/status headless without a visible browser Use a saved storage-state session for note ops so only `login` opens a window; launchPersistentContext was flashing Chromium on Linux. Co-authored-by: Cursor --- tests/cli.test.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/cli.test.sh b/tests/cli.test.sh index 2694938..aefb371 100755 --- a/tests/cli.test.sh +++ b/tests/cli.test.sh @@ -10,6 +10,8 @@ pass() { echo "ok: $*"; } out="$("${CLI[@]}" help 2>&1)" || fail "help exited non-zero" [[ "$out" == *"icloud-note create"* ]] || fail "help missing create usage" +[[ "$out" == *"headless"* ]] || fail "help should say create/status are headless" +[[ "$out" != *"--headed"* ]] || fail "help must not advertise --headed" pass "help" set +e -- cgit v1.2.3