fix(qa): 首批即显并统一五字段后端筛选
build / build (push) Successful in 1m19s

列表正文改为按需读取;保留完整导出、版本隔离和有效标签筛选。
验证:前端全量、Go全量及隔离PG全mirror竞态通过;覆盖首批回调、续载失败与筛选分页。
This commit is contained in:
姚章浩
2026-10-25 12:45:31 +08:00
parent 65653e5c01
commit 00c4c13283
26 changed files with 836 additions and 39 deletions
+12
View File
@@ -52,6 +52,18 @@ const props = {
}
describe('QA operations workbench', () => {
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(<QAOperationsView {...props} page={prefix} loading={true} />)
expect(loading).toContain('data-qa-row="fixture"')
expect(loading).toContain('后台加载中')
expect(loading).not.toContain('正在读取全部问答')
const failed = renderToStaticMarkup(<QAOperationsView {...props} page={prefix} error="明确续载失败" />)
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(
<QAOperationsView {...props} detail={{ ...item, record_origin: 'historical_excel' }} />