yeg
2026-09-08 ede40175dfc1c37c685da61f3f8d8f6624fbe215
集成来源详情表的模板打印回归
1个文件已修改
7 ■■■■■ 已修改文件
tests/e2e/compare-field-templates.spec.ts 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
tests/e2e/compare-field-templates.spec.ts
@@ -132,9 +132,10 @@
  const popupWait = page.waitForEvent('popup')
  await page.getByRole('button', { name: '打印 / 另存 PDF', exact: true }).click()
  const popup = await popupWait
  await expect(popup.locator('.detail-table')).toContainText('乙温升摘要 (℃)')
  await expect(popup.locator('.detail-table')).toContainText('样品质量 (g)')
  await expect(popup.locator('.detail-table')).toContainText('20')
  const printedFields = popup.locator('.detail-table').filter({ hasText: '乙温升摘要 (℃)' })
  await expect(printedFields).toContainText('乙温升摘要 (℃)')
  await expect(printedFields).toContainText('样品质量 (g)')
  await expect(printedFields).toContainText('20')
  await expect(popup.locator('.chart-card')).toContainText('mA')
  await popup.close()
  await page.goto(`/report-compare/${fresh.id}/edit?mode=edit`)