// One-off probe: the add-modal "Download order" select must reveal when // "Download all episodes now" is checked (pure-CSS sibling selector — // the checkbox was nested, so the selector never fired; 2026-10-30). import { test, expect } from "@playwright/test"; const BASE = process.env.BH_BASE ?? "http://localhost:8765"; test("download-order select reveals with the download-all checkbox", async ({ page }) => { await page.request.post(`${BASE}/api/auth/login`, { data: { login: "testuser", password: "Test@Pass123!" }, }); await page.goto(`${BASE}/podcasts`); await page.getByRole("button", { name: "Add Feed" }).click(); const modal = page.locator("#podcast-add-feed-modal"); await expect(modal).toBeVisible(); const checkbox = page.locator("#podcast-download-all"); const orderRow = page.locator("#podcast-add-modal .podcast-add-order, form .podcast-add-order").first(); const orderSelect = page.locator("#podcast-download-order"); await expect(orderSelect).toBeAttached(); await expect(orderRow).toBeHidden(); // unchecked → hidden await checkbox.check(); await expect(orderRow).toBeVisible(); // checked → revealed await expect(orderSelect).toBeVisible(); });