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/e2e.sh | 3 +-- tests/pi-live.sh | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/e2e.sh b/tests/e2e.sh index 0da517a..4b60316 100755 --- a/tests/e2e.sh +++ b/tests/e2e.sh @@ -905,7 +905,7 @@ if command -v node >/dev/null; then iext "$I2" session_start "/importance high" expect "/importance high reaches dingger" "opt $I2 @dingger_importance" high expect "saved in the session" "grep -c '\"customType\":\"dingger-importance\",\"data\":{\"level\":\"high\"}' $ENTRIES" 1 - expect "shown in pi's footer" "grep -c '^status dingger-importance importance: high$' $EXTLOG" 1 + expect "no footer status in pi" "grep -c '^status' $EXTLOG" 0 expect "announced to other extensions" "grep -c '^event dingger:importance {\"level\":\"high\"}$' $EXTLOG" 1 report "$I2" "" normal expect "imp: set back by hand" "opt $I2 @dingger_importance" "" @@ -927,7 +927,6 @@ if command -v node >/dev/null; then expect "an unknown level is refused" "grep -c '^notify importance is high, normal, or low$' $EXTLOG" 1 expect "levels complete" "grep '^complete' $EXTLOG" "complete high" expect "normal reaches dingger" "opt $I2 @dingger_importance" "" - expect "and leaves the footer" "grep -c '^status dingger-importance $' $EXTLOG" 1 fi # --- 22. mark as unread ---------------------------------------------------- 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