Skip to content

test(e2e): restore Playwright signal for issue triage#78

Merged
anantham merged 3 commits into
mainfrom
fix/codex-e2e-signal-triage
May 28, 2026
Merged

test(e2e): restore Playwright signal for issue triage#78
anantham merged 3 commits into
mainfrom
fix/codex-e2e-signal-triage

Conversation

@anantham
Copy link
Copy Markdown
Owner

@anantham anantham commented May 28, 2026

Summary

This keeps the full Playwright suite useful before stale issue closure. It updates e2e assertions that were encoding obsolete contracts, and adds focused coverage for the two stale issues we were considering (#26 and #45).

Root Cause

  • Media e2e asserted the audio generation control while using default settings, but audio controls are intentionally gated behind settings.enableAudio.
  • Initialization e2e matched the old exact [Store:init] prefix and hard-coded 10 IndexedDB stores, while current logs include elapsed timing and schema v16 includes api_metrics.
  • FoJin M2 passed in isolation; its previous full-suite failure was cascade/timing noise after earlier failures.

Changes

  • tests/e2e/chapterview-media.spec.ts: enable audio in the fixture before asserting the audio control.
  • tests/e2e/initialization.spec.ts: use schema-derived store assertions, current init-log detection, and prompt-template persistence checks.
  • tests/e2e/stale-issues-verification.spec.ts: add focused e2e coverage for Hetushu loading/watermark cleanup and Sutta citation placement.
  • docs/WORKLOG.md: record investigation and validation.

Testing

  • npx playwright test tests/e2e/chapterview-media.spec.ts tests/e2e/initialization.spec.ts --reporter=list --workers=1 - 6 passed.
  • npx playwright test --reporter=list --workers=1 - 13 passed, 7 skipped.

Review Checklist

  • No direct commit to main.
  • Focused e2e/test-contract update only.
  • No product code changes.
  • Ready for review.

Context: Full Playwright was red before stale issue closure because several e2e tests encoded obsolete contracts rather than current behavior.

Changes: Enable audio in the media fixture before asserting audio controls, make initialization checks follow the current schema/log contract, and add focused stale-issue coverage for Hetushu and Sutta citation behavior.

Impact: Keeps e2e tests meaningful without changing product code.

Tests: npx playwright test --reporter=list --workers=1

Docs: docs/WORKLOG.md
@vercel
Copy link
Copy Markdown

vercel Bot commented May 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lexicon-forge Ready Ready Preview, Comment May 28, 2026 6:15pm

Context: Claude review flagged residual flake vectors after the Playwright signal restoration PR.

Changes: Remove serial coupling from stale issue checks, scope Hetushu runtime error capture, avoid tooltip class selectors, and replace remaining initialization sleeps with init-complete waits.

Impact: Keeps the suite green under default parallel workers without weakening product assertions.

Tests: npx playwright test tests/e2e/initialization.spec.ts tests/e2e/stale-issues-verification.spec.ts --reporter=list; npx playwright test --reporter=list

Docs: docs/WORKLOG.md
Context: PR #78 CI exposed that the pricing integrity test could call OpenRouter for a model with an exact static cost entry.

Changes: Resolve static COSTS_PER_MILLION_TOKENS entries before dynamic slash-model lookup and add regression coverage asserting no OpenRouter fetch for configured slash IDs.

Impact: Unit tests no longer depend on OpenRouter availability for configured models; dynamic pricing remains available for slash IDs absent from the static table.

Tests: npx vitest run tests/current-system/cost-calculation.test.ts; npx playwright test --reporter=list

Docs: docs/WORKLOG.md
@anantham anantham merged commit c26fa49 into main May 28, 2026
5 checks passed
@anantham anantham deleted the fix/codex-e2e-signal-triage branch May 28, 2026 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant