feat(campaign): make delivery modes explicit

This commit is contained in:
2026-07-22 08:26:52 +02:00
parent 7e1660344d
commit 60efd1cb5d
7 changed files with 274 additions and 13 deletions

View File

@@ -0,0 +1,16 @@
import assert from "node:assert/strict";
import { readFileSync } from "node:fs";
import { fileURLToPath } from "node:url";
import { dirname, resolve } from "node:path";
const here = dirname(fileURLToPath(import.meta.url));
const source = readFileSync(resolve(here, "../src/features/campaigns/ReviewSendPage.tsx"), "utf8");
assert.match(source, /getCampaignDeliveryOptions/);
assert.match(source, /Queue for workers/);
assert.match(source, /Send now keeps this request open/);
assert.match(source, /synchronousSendAllowed/);
assert.match(source, /commandInProgress[\s\S]*refreshQueueStatus/);
assert.match(source, /<ConfirmDialog[\s\S]*open=\{queueConfirmOpen\}/);
assert.match(source, /<ConfirmDialog[\s\S]*open=\{cancelDeliveryConfirmOpen\}/);
assert.doesNotMatch(source, /window\.alert\s*\(/);