列表正文改为按需读取;保留完整导出、版本隔离和有效标签筛选。 验证:前端全量、Go全量及隔离PG全mirror竞态通过;覆盖首批回调、续载失败与筛选分页。
This commit is contained in:
@@ -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' }} />
|
||||
|
||||
Reference in New Issue
Block a user