| ]*>序号<\/th> | 中文问题<\/th>/)
expect(html).toMatch(/data-qa-row="row-0"[^>]*> | ]*>1<\/td>/)
const rows = [...html.matchAll(/data-qa-row="row-(\d+)"[^>]*> | ]*>(\d+)<\/td>/g)]
expect(rows.length).toBeGreaterThan(1)
for (const row of rows) expect(Number(row[2])).toBe(Number(row[1]) + 1)
expect(html).toContain('colSpan="17"')
expect(html).toContain('aria-rowcount="201"')
})
it('keeps the first rows interactive while later batches load or fail', () => {
const prefix = { ...page, total: 2, has_more: true, next_cursor: 'next' }
const loading = renderToStaticMarkup()
expect(loading).toContain('data-qa-row="fixture"')
expect(loading).toContain('后台加载中')
expect(loading).not.toContain('正在读取全部问答')
const failed = renderToStaticMarkup()
expect(failed).toContain('未完整读取')
expect(failed).toContain('明确续载失败')
expect(failed).toContain('data-qa-row="fixture"')
})
it('edits five fields directly in the first row without a separate review or feedback form', () => {
const html = renderToStaticMarkup(
)
const drawer = html.slice(html.indexOf(' |
|---|