From a7e065cd4f39abda178af58127ead1ab502e0f3b Mon Sep 17 00:00:00 2001 From: Igor Soarez Date: Tue, 27 Oct 2026 14:25:44 +0200 Subject: pi: no footer line for the importance it took a line of its own in pi's footer. pi says the level when it is set, and /importance alone shows it; pi clears the old line at /reload. --- tests/pi-live.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/pi-live.sh') diff --git a/tests/pi-live.sh b/tests/pi-live.sh index 9842343..059a92b 100755 --- a/tests/pi-live.sh +++ b/tests/pi-live.sh @@ -110,7 +110,8 @@ t send-keys -t main:agent Escape sleep 0.5 type_line agent "/importance high" expect "/importance high: the pane option" "t show -pv -t main:agent @dingger_importance 2>/dev/null" high 50 -expect "and pi's footer (its last line)" "t capture-pane -p -t main:agent | grep -v '^ *$' | tail -1 | sed 's/^ *//'" "importance: high" 30 +expect "pi says so" "t capture-pane -p -t main:agent | grep -c 'importance: high'" 1 30 +expect "and adds no footer line" "t capture-pane -p -t main:agent | grep -v '^ *$' | tail -1 | grep -c 'importance'" 0 expect "saved in the session file" "grep -c '\"customType\":\"dingger-importance\"' \"\$(t show -pv -t main:agent @agent_session)\"" 1 30 # Seen (what a jump does; no client is attached here), then marked unread. t set -p -t main:agent @dingger_ack 1; "$DINGGER" poke -- cgit v1.2.3