Skip to content

test(prompt): name what covers the card when prompt-dock's top check fails - #3766

Merged
devswha merged 1 commit into
mainfrom
test/prompt-dock-card-top
Nov 12, 2026
Merged

devswha merged 1 commit into
mainfrom
test/prompt-dock-card-top

Conversation

@devswha

@devswha devswha commented Nov 12, 2026

Copy link
Copy Markdown
Owner

Summary

scripts/prompt-dock-demo-regression.ts:325 ("long label at 390x500 at 24px: nothing of the transcript is painted over the card") failed four times today:

It passed 6/6 locally (load 49-67), so the cause could not be reproduced here.

The check takes document.elementFromPoint 4 px under the card's top and asserts that the element is inside the card. It only recorded a boolean, so the failures say something covered the card but not what.

Change (diagnostic only, test file)

Layout.cardTop: boolean becomes Layout.overCard: string | null:

  • null when the card is on top, so the assertion is unchanged.
  • Otherwise, the element drawn there and its nearest ancestor with a class, which goes into the assertion message.

The next failure in CI names what covered the card, and the fix can follow from that.

Validation

  • TMPDIR=~/.cache/ovis-tmp/ci-loop bun scripts/prompt-dock-demo-regression.ts: pass (load 33).
  • bun run check fast: pass (typecheck, build, unit tests, actionlint).

No changelog fragment: this changes a test only.

@coderabbitai

coderabbitai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Tests
    • Updated a layout regression check to report whether content overlaps the card’s top edge, with the expected result now being no overlap.

The regression script replaces the cardTop boolean with an overCard diagnostic. The diagnostic identifies the element at the card’s top-center point, and the placement assertion now requires that value to be null.

Changes: Prompt dock regression check

Layer / File(s) Summary
Covering-element diagnostic and assertion
scripts/prompt-dock-demo-regression.ts
Layout now stores overCard as a string or null. layoutOf reports the covering element at the card’s top-center point. The placement assertion requires overCard to be null and includes the reported element in its failure message.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Suggested reviewers: jpcarranza94

Merge Risk: Minimal · up to caaef

This change only improves failure diagnostics in a test script. It has no production impact and no remaining merge-blocking risk.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the prompt-dock card-top check failure diagnostics now identify what covers the card. It matches the raw summary, which says the boolean is replaced by a diagnostic va…
Description check Passed The description follows the template. It has a Change section that explains the problem (four intermittent failures, not reproducible locally), the resulting behavior (overCard diagnostic in the asser…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: the prompt-dock card-top check failure diagnostics now identify what covers the card. It matches the raw summary, which says the boolean is replaced by a diagnostic value naming the covering element. The title is specific and concise, and it is a single sentence.

Full details: Description check

Explanation

The description follows the template. It has a Change section that explains the problem (four intermittent failures, not reproducible locally), the resulting behavior (overCard diagnostic in the assertion message), and the scope (test file only). It has a Validation section listing the commands run and their results. It does not list skipped checks, and the template's reference to contract-test coverage for HTTP/WS changes does not apply to this test-only change. It also does not link an issue, which is optional here because this is a test diagnostic change. The changelog note is present and matches the template's reference to changelog.d/.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 39a97dc and caaefe0.

Files selected for processing: 1

  • scripts/prompt-dock-demo-regression.ts

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.

@devswha
devswha merged commit 93b526d into main Nov 12, 2026
13 checks passed
@devswha

devswha commented Nov 12, 2026

Copy link
Copy Markdown
Owner Author

Merge pass

Merged head caaefe0a4826 as 93b526d534f0 on GitHub's checks, with no unresolved review threads.

Reviewer Verdict Note
codex CLEAR

One reviewer: test-only PR (scripts/prompt-dock-demo-regression.ts).

Test-only PR (scripts/prompt-dock-demo-regression.ts), so one reviewer: Codex Terra, CLEAR with no findings.

prompt-dock-demo-regression.ts:325 failed four times under load today and passes when run alone. The assertion is unchanged; when it fails it now names what is drawn over the card instead of printing false, so the next red run says what to fix.

@devswha
devswha deleted the test/prompt-dock-card-top branch November 12, 2026 13:53
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