| | |
| | | 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`) |