# Braze Canvas synthetic test plan. Copy per Canvas. Fictional example values shown.
# Every write listed under setup or trigger is a draft until the user approves it.
# Event timestamps are set to the current UTC time at send, never copied from this file.

plan:
  canvas: Acme first import reminder
  canvas_id: CANVAS_ID_PLACEHOLDER
  journey_spec: martech-context/tracking-plan/first-import-reminder.md
  owner_journey: lifecycle lead
  owner_integration: import service team
  release_owner: ""        # named person who can accept an open failure in writing
  environment: duplicated canvas   # test workspace, duplicated canvas, production smoke test
  entry_restriction: "custom attribute qa_fixture exists"
  delays_shortened: "24h to 3m"
  internal_group: "QA fixtures, User Events recording on"   # needed for Event User Log evidence
  checked_on: "2026-10-17"

containment:                  # required for duplicated canvas or production smoke test
  live_journeys_sharing_fixture_events: []   # name, trigger or exit, excludes qa_fixture yes or no
  test_workspace_required: false             # true if any listed journey cannot exclude fixtures
  channels_not_under_test: "push and SMS: fixtures unsubscribed or unreachable"
  warehouse_filter_on_qa_fixture: "requested from data owner"
  expected_usage: "20 profiles, about 40 events"

controls_snapshot:            # copy from the Canvas control sheet at run time
  entry: api_triggered
  re_entry: "on, window 0, exits matched on workspace_id"
  exits: [first_import_succeeded, workspace_cancelled]
  recheck: "reminder step: Connected Content lookup per context workspace_id, abort_message when succeeded or lookup fails"
  entrance_limit: "70 per day"
  subscription_setting: "record the live label"
  frequency_capping: "on, 2 per calendar day, tag lifecycle_optional"
  quiet_hours: "21:00 to 08:00 local, send at next available time"
  global_control_group: "5 percent, exclusion tag service"

fixtures:
  - id: F1
    purpose: happy path
    profile:
      external_id: qa-f1-00000000-0000-4000-8000-000000000001
      email: qa+f1@example.com          # one address per fixture
      timezone: Europe/London
      global_control_group: "check Engagement tab before run"
    setup: "create profile with email_subscribe subscribed, qa_fixture F1, add to internal group"
    trigger: "canvas trigger, context workspace_id ws-000101"
    actions_during_run: []
    expected: send
    expected_detail: "reminder email after the shortened delay"
    evidence_required:
      - "canvases_received.last_entered after trigger"
      - "steps_received includes reminder step"
      - "Messaging History shows the send"
    result: ""          # pass, fail, not run
    evidence: ""
    notes: ""

  - id: F2
    purpose: completes during the delay
    profile:
      external_id: qa-f2-00000000-0000-4000-8000-000000000002
      email: qa+f2@example.com
      timezone: Europe/London
      global_control_group: "check Engagement tab before run"
    setup: "create profile, qa_fixture F2, add to internal group"
    trigger: "canvas trigger, context workspace_id ws-000102"
    actions_during_run:
      - "send first_import_succeeded with workspace_id ws-000102 and the current UTC time, before the delay ends"
    expected: suppression
    expected_detail: "exit, no reminder"
    evidence_required:
      - "canvases_received.last_exited after the exit event"
      - "no send for the reminder step in Messaging History"
    result: ""
    evidence: ""
    notes: ""

  - id: F11
    purpose: two objects in flight
    profile:
      external_id: qa-f11-00000000-0000-4000-8000-000000000011
      email: qa+f11@example.com
      timezone: Europe/London
      global_control_group: "check Engagement tab before run"
    setup: "create profile, qa_fixture F11, add to internal group"
    trigger: "two canvas triggers: context workspace_id ws-000111, then ws-000112"
    actions_during_run:
      - "send first_import_succeeded with workspace_id ws-000111 and the current UTC time, before the delay ends"
    expected: send
    expected_detail: "ws-000111 journey exits; ws-000112 still receives its reminder"
    evidence_required:
      - "one reminder send in Messaging History, for ws-000112 (fixture and workspace in the test title)"
      - "Message Activity Log shows no abort for the ws-000112 reminder"
    result: ""
    evidence: ""
    notes: ""

not_exercised:            # fixtures dropped and why
  - id: F13
    reason: "no backfill route exists for this event yet"

sign_off:
  # ready stays false while open_failures is not empty, unless every open failure
  # has an entry in accepted_failures.
  ready: false
  open_failures: []        # fixture ids that failed and are not yet re-run
  accepted_failures: []    # fixture id, release owner, written acceptance date,
                           # compensating control, decisions.md entry
  approved_by: ""
  approved_on: ""
