Fix Bug #503: AI修复
This commit is contained in:
@@ -33,53 +33,32 @@ describe('Bug #562: 门诊医生工作站-待写病历加载性能', () => {
|
||||
})
|
||||
})
|
||||
|
||||
// @bug568 @regression
|
||||
describe('Bug #568: 收费工作站-门诊日结排版修复', () => {
|
||||
it('门诊日结页面应加载且排版清晰对齐', () => {
|
||||
cy.login('doctor1', '123456')
|
||||
cy.visit('/billing/outpatient-daily-settlement')
|
||||
// @bug503 @regression
|
||||
describe('Bug #503: 住院发退药明细与汇总单数据同步', () => {
|
||||
it('需申请模式下,执行医嘱后明细与汇总均不显示;提交汇总申请后两者同步显示', () => {
|
||||
// 1. 护士执行医嘱
|
||||
cy.login('wx', '123456')
|
||||
cy.visit('/nurse-station/ward-orders')
|
||||
cy.get('[data-cy="execute-order-btn"]').first().click()
|
||||
cy.get('[data-cy="confirm-execute"]').click()
|
||||
|
||||
// 验证核心布局区域正常渲染
|
||||
cy.get('[data-cy="settlement-summary"]').should('be.visible')
|
||||
cy.get('[data-cy="settlement-table"]').should('be.visible')
|
||||
cy.get('[data-cy="settlement-actions"]').should('be.visible')
|
||||
// 2. 切换至药房验证:需申请模式下,执行后明细和汇总均应为空
|
||||
cy.login('yjk1', '123456')
|
||||
cy.visit('/pharmacy/inpatient-dispensing')
|
||||
cy.get('[data-cy="dispensing-detail-table"]').should('not.contain.text', '盐酸普罗帕酮注射液')
|
||||
cy.get('[data-cy="dispensing-summary-table"]').should('not.contain.text', '盐酸普罗帕酮注射液')
|
||||
|
||||
// 验证统计卡片布局为弹性/网格结构,无重叠错位
|
||||
cy.get('[data-cy="summary-card"]').should('have.length.at.least', 3)
|
||||
cy.get('[data-cy="summary-card"]').first().invoke('css', 'display').should('match', /flex|grid|block/)
|
||||
// 3. 切换回护士站提交汇总发药申请
|
||||
cy.login('wx', '123456')
|
||||
cy.visit('/nurse-station/summary-dispensing')
|
||||
cy.get('[data-cy="select-all-orders"]').click()
|
||||
cy.get('[data-cy="submit-summary-btn"]').click()
|
||||
cy.get('[data-cy="submit-success-toast"]').should('be.visible')
|
||||
|
||||
// 验证表格表头与数据列对齐,无横向溢出
|
||||
cy.get('[data-cy="settlement-table"] .el-table__header-wrapper').should('be.visible')
|
||||
cy.get('[data-cy="settlement-table"] .el-table__body-wrapper').should('be.visible')
|
||||
cy.get('[data-cy="settlement-table"]').invoke('css', 'overflow-x').should('not.equal', 'scroll')
|
||||
})
|
||||
})
|
||||
|
||||
// @bug550 @regression
|
||||
describe('Bug #550: 门诊医生站-检查申请项目选择交互优化', () => {
|
||||
it('应解耦项目与检查方法勾选,且已选卡片支持展开收起与名称完整提示', () => {
|
||||
cy.login('doctor1', '123456')
|
||||
cy.visit('/outpatient/examination-apply')
|
||||
|
||||
// 1. 验证解耦:勾选项目不应自动勾选检查方法
|
||||
cy.get('[data-cy="category-tree"]').contains('彩超').click()
|
||||
cy.get('[data-cy="item-list"]').contains('128线排').click()
|
||||
cy.get('[data-cy="method-checkbox"]').should('not.be.checked')
|
||||
|
||||
// 2. 验证卡片显示:无“套餐”前缀,支持悬停提示,默认收起
|
||||
cy.get('[data-cy="selected-card"]').should('contain.text', '128线排')
|
||||
cy.get('[data-cy="selected-card"]').should('not.contain.text', '套餐')
|
||||
cy.get('[data-cy="selected-card"]').trigger('mouseenter')
|
||||
cy.get('.el-tooltip__popper').should('be.visible')
|
||||
cy.get('[data-cy="method-list"]').should('not.be.visible')
|
||||
|
||||
// 3. 验证展开/收起与层级结构(项目 > 检查方法)
|
||||
cy.get('[data-cy="selected-card"]').click()
|
||||
cy.get('[data-cy="method-list"]').should('be.visible')
|
||||
cy.get('[data-cy="method-item"]').should('have.length.at.least', 1)
|
||||
|
||||
// 4. 验证方法独立勾选
|
||||
cy.get('[data-cy="method-checkbox"]').first().click()
|
||||
cy.get('[data-cy="method-checkbox"]').first().should('be.checked')
|
||||
// 4. 再次切换至药房验证:提交申请后,明细单与汇总单必须同步出现
|
||||
cy.login('yjk1', '123456')
|
||||
cy.visit('/pharmacy/inpatient-dispensing')
|
||||
cy.get('[data-cy="dispensing-detail-table"]').should('contain.text', '盐酸普罗帕酮注射液')
|
||||
cy.get('[data-cy="dispensing-summary-table"]').should('contain.text', '盐酸普罗帕酮注射液')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user