From 27514a02da2ed7753b177c9b45b12ba31a49e031 Mon Sep 17 00:00:00 2001 From: chrisnojima Date: Thu, 7 May 2026 14:09:04 -0400 Subject: [PATCH] test push --- shared/package.json | 3 ++- shared/tools/sim-push-chat.sh | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100755 shared/tools/sim-push-chat.sh diff --git a/shared/package.json b/shared/package.json index 7818b3412e66..08365c5be8ce 100644 --- a/shared/package.json +++ b/shared/package.json @@ -76,7 +76,8 @@ "maestro-test-perf-thread": "MAESTRO_CLI_NO_ANALYTICS=1 ./perf/run-maestro.sh --flow performance/perf-thread-scroll.yaml", "desktop-perf-thread": "node perf/run-desktop-perf.js --flow thread", "desktop-perf-inbox": "node perf/run-desktop-perf.js --flow inbox", - "desktop-perf-compare": "node perf/compare-perf.js" + "desktop-perf-compare": "node perf/compare-perf.js", + "sim:push-chat": "bash tools/sim-push-chat.sh" }, "keywords": [], "author": "", diff --git a/shared/tools/sim-push-chat.sh b/shared/tools/sim-push-chat.sh new file mode 100755 index 000000000000..cf4b48293b46 --- /dev/null +++ b/shared/tools/sim-push-chat.sh @@ -0,0 +1,20 @@ +#!/bin/bash +# Send a chat.newmessage push notification to the booted iOS simulator. +# Usage: sim-push-chat.sh [conversationIDKey] +CONV_ID="${1:-0000b386ba31eebeea5d8ba781aa8ccb4e0c31b6d9a210e74964b42d2d5726c1}" +PAYLOAD=$(cat <