Skip to content

Add tests for block hint messages - #750

Merged
lawsie merged 1 commit into
flipcomputing:mainfrom
lawsie:test-improvements
Aug 13, 2026
Merged

Add tests for block hint messages#750
lawsie merged 1 commit into
flipcomputing:mainfrom
lawsie:test-improvements

Conversation

@lawsie

@lawsie lawsie commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds tests for block hint messages

AI usage

Claude Opus 5 wrote the tests. I checked all of the tests by reading the code and thinking about the logic.

Summary by CodeRabbit

  • Tests
    • Added comprehensive coverage for block hint behavior, including rendering, sanitization, empty states, enabling and disabling, remembered hints, clearing and hiding, message formatting, and mobile defaults.
    • Added the block hint suite to the test runner.

@coderabbitai

coderabbitai Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: e9fefbd5-d853-4a7e-bce1-44e20c25c60f

📥 Commits

Reviewing files that changed from the base of the PR and between a58fab7 and 356e763.

📒 Files selected for processing (2)
  • tests/blockhint.test.js
  • tests/tests.html

📝 Walkthrough

Walkthrough

Changes

Block Hint Testing

Layer / File(s) Summary
Block hint behavior coverage
tests/blockhint.test.js
Adds tests for rendering, sanitization, empty input, enabled state, hiding, clearing, remembered hints, message formatting, escaping, and responsive defaults.
Test runner registration
tests/tests.html
Adds the Block Hint Tests suite to the selectable test-suite definitions.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Mergeability Score: ⚪ Minimal · up to 356e7

This PR adds block hint message tests and updates the test runner; no actionable merge-blocking risk remains beyond normal checks and review.

Suggested reviewers: tracygardner

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: adding tests for block hint behavior and messages.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

Comment @coderabbitai help to get the list of available commands.

@lawsie
lawsie merged commit 63e049f into flipcomputing:main Aug 13, 2026
3 checks passed
@lawsie
lawsie deleted the test-improvements branch August 13, 2026 16:49
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