Fix Bug #566: AI修复
This commit is contained in:
@@ -60,3 +60,40 @@ describe('Bug #595: 住院护士站-医嘱校对列表字段完整性与皮试
|
||||
cy.contains('th', '频次/用法').should('exist')
|
||||
})
|
||||
})
|
||||
|
||||
// Bug #566 Regression Test
|
||||
describe('Bug #566: 住院护士站-三测单图表渲染与数据同步', { tags: ['@bug566', '@regression'] }, () => {
|
||||
it('录入体征数据后,体温单图表区应自动渲染数据点、连线,且下方表格同步显示', () => {
|
||||
cy.login('wx', '123456')
|
||||
cy.visit('/inpatient/vital-signs')
|
||||
|
||||
// 1. 选中患者并新增体征数据
|
||||
cy.get('.patient-list .el-table__row').first().click()
|
||||
cy.get('.el-button').contains('新增').click()
|
||||
cy.get('.el-dialog__body').should('be.visible')
|
||||
|
||||
cy.get('input[placeholder*="日期"]').type('2026-05-20')
|
||||
cy.get('input[placeholder*="时间"]').type('06:00')
|
||||
cy.get('input[placeholder*="体温"]').type('38.6')
|
||||
cy.get('input[placeholder*="心率"]').type('89')
|
||||
cy.get('input[placeholder*="脉搏"]').type('45')
|
||||
cy.get('.el-dialog__footer .el-button--primary').contains('保存').click()
|
||||
|
||||
// 2. 验证弹窗关闭且提示成功
|
||||
cy.get('.el-message').contains('保存成功').should('exist')
|
||||
cy.get('.el-dialog').should('not.exist')
|
||||
|
||||
// 3. 验证表格区同步显示
|
||||
cy.get('.vital-signs-table .el-table__body-wrapper').should('be.visible')
|
||||
cy.contains('td', '38.6').should('exist')
|
||||
cy.contains('td', '89').should('exist')
|
||||
cy.contains('td', '45').should('exist')
|
||||
|
||||
// 4. 验证图表区渲染 (ECharts canvas)
|
||||
cy.get('.vital-signs-chart canvas').should('be.visible')
|
||||
// 模拟鼠标悬停验证数据点存在
|
||||
cy.get('.vital-signs-chart').trigger('mousemove', { clientX: 500, clientY: 300 })
|
||||
cy.get('.echarts-tooltip').should('be.visible')
|
||||
cy.contains('.echarts-tooltip', '38.6').should('exist')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user