Skip to content

feat: Table handles & cell menu component tests - #3470

Open
matthewlipski wants to merge 1 commit into
mobile-toolbar-a11y-testfrom
table-handles-a11y-test
Open

matthewlipski wants to merge 1 commit into
mobile-toolbar-a11y-testfrom
table-handles-a11y-test

Conversation

@matthewlipski

@matthewlipski matthewlipski commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

This PR adds component tests for the table handles & table cell menu.

Rationale

This is the next step for implementing our new component/a11y testing setup for all UI components.

Changes

See above.

Impact

N/A

Testing

See above.

Screenshots/Video

N/A

Checklist

  • Code follows the project's coding standards.
  • Unit tests covering the new feature have been added.
  • All existing tests pass.
  • The documentation has been updated to reflect the new feature

Additional Notes

N/A

Summary by CodeRabbit

  • Tests
    • Expanded browser test coverage for table controls, including row and column resizing, insertion, deletion, reordering, and header changes.
    • Added checks for cell splitting, text and background color changes, merged cells, menus, keyboard interaction, focus, and accessibility attributes.
    • Added coverage for control visibility, portal rendering, scrolling, and behavior in right-to-left layouts.

@vercel

vercel Bot commented Dec 3, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
blocknote Ready Ready Preview Dec 3, 2026 6:01pm UTC
blocknote-website Ready Ready Preview Dec 3, 2026 6:01pm UTC

Request Review

@matthewlipski
matthewlipski added this pull request to stack #3468 December 3, 2026 18:01
@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request adds browser tests for table handles, cell controls, and row or column extension. The tests cover visibility, menu actions, dragging, keyboard interaction, and accessibility attributes. The browser test configuration registers the four test files.

Changes: Table handle browser tests

Layer / File(s) Summary
Controller visibility and browser registration
packages/react/src/components/TableHandles/TableHandlesController.browser.test.tsx, tests/vite.config.browser.ts
Tests cover controller visibility, portals, focus, scrolling, menus, and control hiding. The browser configuration registers the test files. A read-only transition test is skipped.
Row and column handle interactions
packages/react/src/components/TableHandles/TableHandle.browser.test.tsx
Tests cover handle availability, row and column actions, dragging, menu state, accessibility attributes, and keyboard interaction. Some read-only and accessibility tests are skipped.
Cell button and menu interactions
packages/react/src/components/TableHandles/TableCellButton.browser.test.tsx
Tests cover button availability, menu targeting, splitting, color changes, accessibility attributes, and keyboard interaction. Some read-only and accessibility tests are skipped.
Table extension interactions
packages/react/src/components/TableHandles/ExtendButton/ExtendButton.browser.test.tsx
Tests cover row and column extension by click, drag, and keyboard, including RTL dragging and preservation of populated cells. Some read-only and accessibility tests are skipped.

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

Change: Other

Possibly related issues

Suggested reviewers: nperez0111

Merge Risk: Minimal · up to ce44b

This PR only adds component tests for table handles and the cell menu, with no changes to shipped code, so it carries little production risk. Two webkit E2E checks failed in CI; confirm they are unrelated to these tests or already failing upstream before merging.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "feat: Table handles & cell menu component tests" matches the main change. The changeset adds browser component tests for ExtendButton, TableCellButton, TableHandle, and TableHandlesControll…
Description check Passed The description fills the Summary, Rationale, Changes, Impact, Testing, Screenshots, Checklist, and Additional Notes sections. The Summary states the PR adds component tests for table handles and the …
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 "feat: Table handles & cell menu component tests" matches the main change. The changeset adds browser component tests for ExtendButton, TableCellButton, TableHandle, and TableHandlesController, and the test config additions. It is specific and concise, and the objectives describe the same focus.

Full details: Description check

Explanation

The description fills the Summary, Rationale, Changes, Impact, Testing, Screenshots, Checklist, and Additional Notes sections. The Summary states the PR adds component tests for table handles and the table cell menu. The Rationale links the work to the component and a11y testing setup. Several template sections are weak: the Changes section says only "See above", the Testing section says only "See above", and the template comment placeholders remain in Summary, Rationale, Changes, Impact, Testing, Screenshots, and Additional Notes. The documentation checklist item is unchecked, and the description does not list the four test files or the added test-run configuration. The core content is present, so the check passes, but the description would be clearer with specifics.

Resolution

Optional improvements: replace the "See above" entries in Changes and Testing with the four test files (ExtendButton, TableCellButton, TableHandle, TableHandlesController) and the change to tests/vite.config.browser.ts. Remove the remaining template comment placeholders. State whether the documentation checklist item applies, and mark it or explain why it does not.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Fix failing CI checks

  • 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

A rabbit taps the table edge,
Then tests the handles row by row.
It hops through menus, keys, and drag,
Checks cells stay put as colors flow.
“All green,” it says, and nibbles hay.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2f6b07a1-e804-423a-a359-c1da615c0f72
Commits

Reviewing files that changed from the base of the PR and between 81b6f93 and ce44be1.

Files selected for processing: 5

  • packages/react/src/components/TableHandles/ExtendButton/ExtendButton.browser.test.tsx
  • packages/react/src/components/TableHandles/TableCellButton.browser.test.tsx
  • packages/react/src/components/TableHandles/TableHandle.browser.test.tsx
  • packages/react/src/components/TableHandles/TableHandlesController.browser.test.tsx
  • tests/vite.config.browser.ts

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

@pkg-pr-new

pkg-pr-new Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@blocknote/ariakit

npm i https://pkg.pr.new/@blocknote/ariakit@3470

@blocknote/code-block

npm i https://pkg.pr.new/@blocknote/code-block@3470

@blocknote/core

npm i https://pkg.pr.new/@blocknote/core@3470

@blocknote/diagram-block

npm i https://pkg.pr.new/@blocknote/diagram-block@3470

@blocknote/mantine

npm i https://pkg.pr.new/@blocknote/mantine@3470

@blocknote/math-block

npm i https://pkg.pr.new/@blocknote/math-block@3470

@blocknote/react

npm i https://pkg.pr.new/@blocknote/react@3470

@blocknote/server-util

npm i https://pkg.pr.new/@blocknote/server-util@3470

@blocknote/shadcn

npm i https://pkg.pr.new/@blocknote/shadcn@3470

@blocknote/xl-ai

npm i https://pkg.pr.new/@blocknote/xl-ai@3470

@blocknote/xl-docx-exporter

npm i https://pkg.pr.new/@blocknote/xl-docx-exporter@3470

@blocknote/xl-email-exporter

npm i https://pkg.pr.new/@blocknote/xl-email-exporter@3470

@blocknote/xl-multi-column

npm i https://pkg.pr.new/@blocknote/xl-multi-column@3470

@blocknote/xl-odt-exporter

npm i https://pkg.pr.new/@blocknote/xl-odt-exporter@3470

@blocknote/xl-pdf-exporter

npm i https://pkg.pr.new/@blocknote/xl-pdf-exporter@3470

@blocknote/xl-typst-exporter

npm i https://pkg.pr.new/@blocknote/xl-typst-exporter@3470

commit: ce44be1

@nperez0111 nperez0111 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm doing a bunch of table stuff at the moment, so let's keep this off the stack

This branch was successfully deployed

2 active deployments
Preview – blocknote-website — ce44be1f Deployed Dec 3, 2026 by vercel[bot]
Preview – blocknote — ce44be1f Deployed Dec 3, 2026 by vercel[bot]
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.

2 participants