/** * CL-series — Fase 17.4.2 (changelog modal on /settings). * * CL-01: clicking "Ver historial" in the About section opens the modal * and the [v0.0.0-beta] heading is visible. * CL-02: Escape closes the modal. * * The CHANGELOG content is bundled at build time via ?raw, so these * assertions exercise the production load path (no fetch, no SSR). */ import { test, expect } from '@playwright/test'; import { USERS } from '../fixtures/users.js'; import { loginAs } from '../fixtures/login.js'; test.describe('Changelog modal', () => { test('CL-01: opens from /settings About section and shows beta heading', async ({ page }) => { await loginAs(page, USERS.ana); await page.goto('/settings'); const trigger = page.getByTestId('settings-about-view-changelog'); await expect(trigger).toBeVisible({ timeout: 10_000 }); await trigger.click(); const modal = page.getByTestId('changelog-modal'); await expect(modal).toBeVisible({ timeout: 5_000 }); // The CHANGELOG header is parsed into an