import { request as playwrightRequest } from '@playwright/test' import type { SpeechScope, SpeechTopic } from '@/lib/speechFacets' import { normalizeForSearch } from '../../src/lib/speechSearch.js' import { hookFilledCreateData } from '../../src/utilities/hookFilledData.js' import type { CampaignE2EOwnership } from './fixtures/campaignE2EFixtures.js' import { assertCampaignRedirect, expect, rendered, test } from './fixtures/campaignHttpTest.js' /** * C154/C162 — the communication vertical over real HTTP (browserless, * OPS35/OPS87): role gates, the acervo search rendering (highlight + excerpt), * the filter URL contract and the detail's player/transcript/actions. The * player picks the surface from the row coordinates — the Câmara excerpt as the * default when the speech has one (stored-VOD capa resolved on click), a * clickable YouTube cover when it only has a session link (C178: YouTube is * never an embedded entry; C181 restores the embed as the opt-in in-page surface * behind "Assistir no YouTube", keeping the Câmara as the default entry) — and * honest states when neither exists — and the stored VOD link itself is never * rendered (C162). Playback is browser territory and is not asserted here; the * HTML carries the contract (`