跳到正文
cccskills
免费在 GitHub 公开

walkontable-testing

Maintain existing tests for Walkontable, Handsontable's table rendering engine. The skill explains its separate test commands and covers frozen rows and columns, visible area calculations, scroll alignment, and pitfalls that can hide failures or produce misleading results.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Use when writing tests for the Walkontable rendering engine - has its own separate test pipeline, runner, and configuration distinct from main Handsontable E2E tests

集成工具Playwright
查看安装方法

适用场景

  • Maintaining existing Walkontable rendering tests
  • Checking frozen rows and columns during scrolling
  • Testing visible areas after container resizing
  • Investigating missing test results

包含的文件(1)

  • SKILL.md3.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Testing the Walkontable Rendering Engine

Walkontable follows the same freeze as the main suite. Its Playwright home is tests/e2e/walkontable/ (page objects in tests/fixtures/pages/walkontable/). Maintenance edits to existing *.spec.js are allowed; new or flaky walkontable tests go to Playwright (the presence gate blocks a new walkontable *.spec.js). In CI the legacy Jasmine/Puppeteer walkontable job and the Playwright e2e job run in parallel. This guide is for maintaining the frozen Jasmine specs.

Separate test pipeline

  • Run: npm run test:walkontable --prefix handsontable (the test/spec/ specs). test:e2e does not pick them up.
  • Location: src/3rdparty/walkontable/test/
    • test/spec/: Jasmine + Puppeteer with a separate Rspack config and bootstrap. Only test:walkontable runs them.
    • test/unit/: Jest tests for calculators, filters, renderers, utilities (48 *.unit.ts/*.unit.js files). The core jest.config.js picks them up, so npm run test:unit and the core Unit / test CI job run them, and test:walkontable does not.

Writing tests

  • it() callbacks that call rendering APIs are async and await those calls.
  • Tests are organized by subsystem (overlay/, scroll/, selection/, renderer/, table/, viewport.spec.js); place new ones in the matching directory.

What to cover

  • Frozen rows and columns: the 6 overlay types are the most fragile part; include frozen scenarios for overlay positioning and sync.
  • Viewport calculations: small containers that clip, containers larger than the data, dynamic resize.
  • Scroll synchronization: horizontal and vertical scroll keep frozen overlays aligned.
  • Large datasets: 10k+ rows. Populate arrays with forEach; arr.push(...largeArray) overflows the stack.

Common mistakes

  • Running Walkontable tests via test:e2e.
  • Changing the test bootstrap or Rspack config without confirming test/spec/ passes under test:walkontable and test/unit/ under the core test:unit.
  • Clearing an inline overflow longhand with jQuery: $el.css('overflow-x', '') leaves an inline overflow-x in this harness, so the "clip removed" branch asserts against the wrong layout. Write el.style.overflowX = '' and assert the intermediate fact (getComputedStyle(el).overflowX === 'visible') before the behavior.
  • Trusting the spec count. A failing spec whose expected/actual was a cyclic object (toBe(window), toEqual([overlay, ...])) used to be dropped at the Puppeteer bridge (Running 16 specs., then 15 specs, 0 failures, exit 0; the getOverlays spec sat like that from #12951). test/helpers/jasmine-bridge-reporter.js now reports it as a failure ([unserializable Window]). If a count comes up short, compare the Running N specs. line with the summary via npm run test:walkontable -- --testPathPattern=<file> --verbose.
  • Turning on rowHeightsUniform/columnWidthsUniform in a bare Walkontable spec and asserting scrollbar-dependent row/column counts: the bare harness overflows content without a real scrollbar while the single-pass layout snapshot predicts one, so they diverge. Assert the snapshot booleans directly, or use a fixture that renders a real scrollbar.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Develop and modify the Handsontable Angular wrapper with guidance on component lifecycle, settings updates, and NgZone, which controls change detection. It also covers standalone examples, global configuration, and the build and test workflow.

中文简介正在准备中。当前显示英语简介。

  • Fix settings updates in the Angular wrapper
  • Review change detection around grid operations
  • Update examples to standalone components
handsontable/handsontable2.2万2026年10月19日 更新

Open local or public web pages in BrowserStack Live for checks on real mobile devices or desktop browsers. The skill prepares temporary access to a local server, launches the requested session, and shares its dashboard link.

中文简介正在准备中。当前显示英语简介。

  • Check a local page on an Android device
  • Open a page in Safari on an iPhone or iPad
  • Inspect behavior in a specific desktop browser
handsontable/handsontable2.2万2026年10月19日 更新

Prepare user-facing changelog entries for source code changes. The skill determines whether an entry is needed, classifies the change, writes a clear title, and uses the project CLI to create a JSON file tied to the pull request.

中文简介正在准备中。当前显示英语简介。

  • Add a changelog entry for a bug fix
  • Classify a new feature or behavior change
  • Explain a breaking change and its replacement
handsontable/handsontable2.2万2026年10月19日 更新

Explore relationships between functions and files using a prebuilt code graph, a map of code dependencies. Trace bugs, inspect callers and execution paths, and assess the impact of refactoring or proposed changes.

中文简介正在准备中。当前显示英语简介。

  • Explore callers and dependencies in unfamiliar code
  • Trace a bug across multiple files
  • Assess the impact of renaming or removing code
handsontable/handsontable2.2万2026年10月19日 更新

Work with Handsontable row and column positions by distinguishing source data, displayed order, and rendered cells. It guides index conversion and helps investigate misplaced data when sorting, filtering, hiding, or moving rows and columns.

中文简介正在准备中。当前显示英语简介。

  • Investigating misplaced rows or columns
  • Converting between source and displayed indexes
  • Combining filters with manual column movement
handsontable/handsontable2.2万2026年10月19日 更新

Create Handsontable documentation examples for JavaScript, TypeScript, React, Angular, and Vue. The skill explains source files, generated JavaScript, required imports and license settings, embedding examples in guides, and checking that each framework version displays correctly.

中文简介正在准备中。当前显示英语简介。

  • Adding a code example to a feature guide
  • Preparing examples for multiple frameworks
  • Generating JavaScript examples from TypeScript
handsontable/handsontable2.2万2026年10月19日 更新

查看 handsontable 的全部技能

报告此技能的问题