Skip to content

DEV-4893: backfill recorder/devbar hardening tests#17

Open
ytspar wants to merge 1 commit into
mainfrom
chore/DEV-4893-recorder-test-backfill
Open

DEV-4893: backfill recorder/devbar hardening tests#17
ytspar wants to merge 1 commit into
mainfrom
chore/DEV-4893-recorder-test-backfill

Conversation

@ytspar

@ytspar ytspar commented Jun 21, 2026

Copy link
Copy Markdown
Owner

Summary

Backfill the three cycle-1-deferred unit tests for the DEV-4874 recorder/devbar hardening (landed in #16). Test-only follow-up; closes the DEV-4893 tracker.

Tests added

  • recording.test.ts — (1) stopRecording logs the null-video warning + writes a manifest with video undefined when page.video() is null; (2) getRecordingStatus is pause-aware (duration excludes the open + accumulated pause windows).
  • websocket.test.ts — (3) record-start-response clears a stale optimistic timer before starting its own (the leaked-interval fix); (4) success:false rolls back the optimistic "recording" UI.

Testing

recording.test.ts + websocket.test.ts: 111/111 pass. Test-only — no source changes.

The three cycle-1-deferred unit tests for the DEV-4874 hardening fixes
(landed in #16), as a test-only follow-up:

- recording.test.ts: stopRecording logs the null-video warning + writes a
  manifest with video undefined when page.video() is null; getRecordingStatus
  is pause-aware (duration excludes the open + accumulated pause windows).
- websocket.test.ts: record-start-response clears a stale optimistic timer
  before starting its own (leak fix), and rolls back the optimistic UI on a
  success:false response.

Test-only (111/111 in the two files).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

@ytspar ytspar left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

AI review (advisory) — cycle 1

Per the MR Review SOP, this is advisory only.
Reviewed against: 5d2ef0f

Summary

Test-only backfill of the three cycle-1-deferred unit tests for the DEV-4874 recorder/devbar hardening (landed in #16). No source changes — pure coverage; re-homed onto current main after #16 squash-merged.

Findings

blocker: none.

  • recording.test.ts — null-page.video() warning + video-undefined manifest on stop; getRecordingStatus pause-aware (excludes open + accumulated pause windows).
  • websocket.test.tsrecord-start-response clears a stale optimistic timer before starting its own (the DEV-4874 leak fix), and rolls back the optimistic UI on success:false.
  • Both suites green: 111/111. Test-only diff.

Recommendation

APPROVE

Verdict (5d2ef0f): APPROVE

Self-authored PR → author can't self-approve; this documents the review. Test-only + green; awaiting a non-author teammate to merge.

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