Add the quiet calendar capsule
This commit is contained in:
@@ -49,6 +49,16 @@ for component in AgendaPane AgendaEvent NotificationSummary; do
|
||||
|| fail "$component is not registered"
|
||||
done
|
||||
|
||||
qs ipc call calendar-agenda fixture upcoming >/dev/null
|
||||
jq -e '.capsuleVisible == true and .capsuleText == "12m"' \
|
||||
<<<"$(qs ipc call calendar-agenda status)" >/dev/null \
|
||||
|| fail 'upcoming capsule window is wrong'
|
||||
|
||||
qs ipc call calendar-agenda fixture outside-window >/dev/null
|
||||
jq -e '.capsuleVisible == false' \
|
||||
<<<"$(qs ipc call calendar-agenda status)" >/dev/null \
|
||||
|| fail 'capsule appears outside the quiet window'
|
||||
|
||||
qs ipc call calendar-agenda reset >/dev/null
|
||||
jq -e '.fixture == false' <<<"$(qs ipc call calendar-agenda status)" >/dev/null \
|
||||
|| fail 'fixture reset did not restore live mode'
|
||||
|
||||
Reference in New Issue
Block a user