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"; }