From 90218364b42e7b6e8ac97cc837a5db898c093a8a Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 25 Apr 2026 21:47:19 +0100 Subject: [PATCH] test: update bundled setup-entry docker prompt --- scripts/e2e/bundled-channel-runtime-deps-docker.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/e2e/bundled-channel-runtime-deps-docker.sh b/scripts/e2e/bundled-channel-runtime-deps-docker.sh index 623fbfb50cc..0c2f76fce6b 100644 --- a/scripts/e2e/bundled-channel-runtime-deps-docker.sh +++ b/scripts/e2e/bundled-channel-runtime-deps-docker.sh @@ -786,11 +786,17 @@ const prompter = { } return initialValue ?? true; }, - select: async ({ message }) => { + select: async ({ message, options }) => { if (message === "Select a channel") { channelSelectCount += 1; return channelSelectCount === 1 ? "whatsapp" : "__done__"; } + if (message === "Install WhatsApp plugin?") { + if (!options?.some((option) => option.value === "local")) { + throw new Error(`missing bundled local install option: ${JSON.stringify(options)}`); + } + return "local"; + } if (message === "WhatsApp phone setup") { return "separate"; }