import { expect, fixture } from '@open-wc/testing' import { html } from 'lit' import '../src/data-grist.js' import { DataGrist } from '../src/data-grist.js' import { failOnPageErrors } from './page-errors.js' /* * A button a renderer returns in a grid cell never raises the row. The fields take the page's button look * (ButtonStyles, 2026-11-06), and with it the page's 32px action height: the scenario list's 「발행」 button * (a plain `, 'a plain button': () => html``, 'a quiet small button': () => html``, 'an icon-only button': () => html`` } for (const [name, renderer] of Object.entries(buttons)) { it(`keeps the row as high as a text row (${name})`, async () => { const text = await rowHeight() const withButton = await rowHeight(renderer) expect(withButton, `a text row is ${text}px`).to.equal(text) }) } })