Fix Bug #550: AI修复

This commit is contained in:
2026-05-27 08:22:01 +08:00
parent 041de38149
commit 91bd1ec9c2
2 changed files with 167 additions and 146 deletions

View File

@@ -43,4 +43,30 @@ describe('Bug Regression Tests', () => {
cy.get('.detail-count').invoke('text').should('eq', summaryCount)
})
})
/**
* @bug550 @regression
* 验证门诊检查申请项目选择交互优化:解耦勾选、名称完整显示、明细默认收起及层级结构
*/
it('Bug #550: 检查申请项目选择交互优化', () => {
cy.login('doctor1', '123456')
cy.visit('/outpatient/doctor/examination')
// 1. 展开彩超分类并勾选项目
cy.get('.category-tree').contains('彩超').click()
cy.get('.item-checkbox').contains('128线排').click()
// 2. 验证检查方法未自动勾选(解耦)
cy.get('.method-checkbox-group .el-checkbox').should('not.be.checked')
// 3. 验证已选卡片:无“套餐”前缀,名称完整或可悬停查看
cy.get('.selected-card').should('not.contain', '套餐')
cy.get('.selected-card .item-name').should('have.attr', 'title', '128线排')
// 4. 验证明细默认收起,且层级为 项目 > 检查方法
cy.get('.details-panel').should('not.be.visible')
cy.get('.card-header').first().click()
cy.get('.details-panel').should('be.visible')
cy.get('.method-section').should('exist')
})
})