aboutsummaryrefslogtreecommitdiff
path: root/tests/e2e.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/e2e.sh')
-rwxr-xr-xtests/e2e.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/e2e.sh b/tests/e2e.sh
index 015d6aa..054bd51 100755
--- a/tests/e2e.sh
+++ b/tests/e2e.sh
@@ -282,6 +282,20 @@ else
fail "node not found; cannot test the pi extension"
fi
+# --- 13. the floating panel: visibility rules and compact content -----------
+echo "13. floating panel"
+if [ -x "$MENUBAR" ]; then
+ mb() { DINGGER_TMUX_SOCKET="$SOCK" DINGGER_BIN="$DINGGER" "$MENUBAR" "$@"; }
+ expect "panel visibility rules (selftest)" "mb --selftest | tail -1" "selftest ok"
+ expect "panel lists the waiting agent" "mb --print-panel | head -1 | cut -f1,2 | tr '\t' '|'" "โœ“ done|pi"
+ expect "panel summarizes the rest" "mb --print-panel | tail -1" "โ—‹ 3 idle"
+ DINGGER_TMUX_SOCKET="$SOCK" "$DINGGER" focus --client "$CLIENT" --pane "$A2"
+ expect "A2 idle after the jump" "opt $A2 @agent_state" idle
+ expect "panel with nothing waiting" "mb --print-panel" "Nothing waiting ยท โ—‹ 4 idle"
+else
+ fail "menu bar binary not found at $MENUBAR"
+fi
+
echo
echo "$PASSES passed, $FAILS failed"
[ "$FAILS" -eq 0 ] || { echo "--- daemon log tail"; tail -30 "$DIR/daemon.log"; exit 1; }