Skip to content

test(e2e): add Obsidian runtime coverage#172

Merged
chhoumann merged 2 commits into
masterfrom
codex/add-obsidian-e2e-tests
May 4, 2026
Merged

test(e2e): add Obsidian runtime coverage#172
chhoumann merged 2 commits into
masterfrom
codex/add-obsidian-e2e-tests

Conversation

@chhoumann
Copy link
Copy Markdown
Owner

Add a local Obsidian-backed E2E layer for PodNotes using obsidian-e2e@0.6.0.

This covers the runtime paths that are hard to validate in jsdom: plugin readiness, command and protocol registration, opening the PodNotes view, timestamp URI playback including time=0, already-loaded episode seeking, timestamp capture into an editor note, and persisted/clamped volume settings.

The suite is intentionally local-only for this pass. It runs behind npm run test:e2e, builds first, locks the target vault, creates a sandbox under __obsidian_e2e__, restores PodNotes data.json, captures failure artifacts under .obsidian-e2e-artifacts, and fails during preflight if the dev vault plugin symlinks do not point at the current checkout. No required CI check is added.

Reviewer context: the tests use local sandbox episode records and media-event shims so assertions stay focused on PodNotes runtime behavior rather than external feeds or browser codec playback. The large lockfile delta comes from adding obsidian-e2e@0.6.0 and its transitive dependencies.

Verified locally with npm run lint, npm run format:check, npm run typecheck, npm run test, npm run build, and a full npm run test:e2e run after temporarily pointing the dev vault symlinks at this checkout. A plain npm run test:e2e fails early as intended when the dev vault points at another worktree.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 3, 2026

Deploying podnotes with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3f2d672
Status: ✅  Deploy successful!
Preview URL: https://af516a99.podnotes.pages.dev
Branch Preview URL: https://codex-add-obsidian-e2e-tests.podnotes.pages.dev

View logs

@chhoumann chhoumann marked this pull request as ready for review May 3, 2026 16:02
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 732cfd4432

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tests/e2e/harness.ts Outdated
@chhoumann chhoumann merged commit f2877ac into master May 4, 2026
2 checks passed
@chhoumann chhoumann deleted the codex/add-obsidian-e2e-tests branch May 4, 2026 05:31
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