tts-voice-creator-clone-and.../tests
mARTin-B78 96b0b9dd71
Some checks are pending
Test and SonarQube / quality (push) Waiting to run
fix(magazine): finish and harden the live ingest preview
Resumes an in-progress, uncommitted change from a previous session: the
live "page image + recognised text" preview shown during ingestion was
reworked to render formatted HTML (styled headings, a figure
placeholder) instead of a plain-text dump, but was left with a
duplication bug, dead code, inline styles, and no tests.

- Fixed duplication: a figure block's own transcribed text (usually its
  on-screen UI copy) was rendered as an ordinary paragraph in addition
  to the new figure placeholder box. Figure/chart/table/code blocks are
  now represented only by the placeholder.
- Furniture/sidebar/pullquote/ad text is shown muted instead of being
  dropped with no replacement, and is never promoted to a heading
  regardless of font size.
- Factored the formatting logic out of the progress closure into a
  standalone, unit-tested _render_ingest_preview_html().
- Replaced dead getattr(bbox, "y0", ...) calls (bbox is always a plain
  [x, y, w, h] list) with direct indexing, moved statistics/logging
  imports to module level, switched manual character replacement to
  html.escape(), and bounded the preview by an accumulated line budget
  instead of a blind slice that could truncate mid-tag.
- Replaced inline style="..." with CSS classes matching the panel's
  existing dark console treatment.
- The frontend now always uses innerHTML (every text node is escaped
  server-side), dropping the startsWith('<') content-type sniffing.
- Marked the preview panel aria-hidden -- decorative, and would
  otherwise churn noisily for screen reader users on top of the
  adjacent progress bar.

Verified against the real c't KI Wissen 2026 layout: a figure's raw
OCR text no longer appears twice, a real headline renders as <h3>, a
footer/pull-quote render muted, and all text is correctly escaped.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-12 15:24:16 +02:00
..
fixtures test: add book two attribution fixture 2026-09-04 09:18:41 +02:00
bundle.spec.js Release v1.6.0: a11y (WCAG AA), i18n (DE), PWA, perf, tests, Cast UX 2026-06-03 14:23:35 +02:00
characters.spec.js perf: lazy-load section feature modules 2026-09-04 10:23:20 +02:00
constrained.spec.js test: measure constrained character workloads 2026-09-04 10:34:27 +02:00
i18n.spec.js Stabilize browser smoke tests for current UI 2026-08-19 16:59:39 +02:00
lazy-loading.spec.js fix: preserve audiobook dialogue boundaries 2026-09-04 15:36:26 +02:00
magazine.spec.js Release v1.26.13: Fix drag-and-drop file opening in tab & improve magazine dropzone reliability 2026-09-10 14:31:16 +02:00
rehearser.spec.js refactor: extract rehearser voice matching 2026-09-04 11:47:51 +02:00
smoke.spec.js Release v1.26.1 2026-09-08 23:39:44 +02:00
test_conversation.py fix: recover character sheet requests from gateway 405 2026-09-09 06:49:52 +02:00
test_magazine_routes.py fix(magazine): finish and harden the live ingest preview 2026-09-12 15:24:16 +02:00
test_magazine.py fix(magazine): derive figure boundaries from the page render 2026-09-12 10:17:00 +02:00
test_provider_health.py refactor: centralize provider health probes 2026-09-04 10:25:55 +02:00
test_security.py feat: distinguish provider configuration and health 2026-09-04 11:35:52 +02:00