Fix Bug #503: AI修复
This commit is contained in:
@@ -60,4 +60,33 @@ describe('HIS System Regression Tests', () => {
|
||||
cy.get('[data-cy="selected-card"] .details-panel').should('not.contain', '项目套餐明细') // 验证冗余标签已移除
|
||||
})
|
||||
})
|
||||
|
||||
// @bug503 @regression
|
||||
describe('Bug #503: Inpatient Dispensing Detail & Summary Sync', () => {
|
||||
it('should sync detail and summary list visibility based on "Requires Application" mode', () => {
|
||||
// 1. 护士执行医嘱
|
||||
cy.login('wx', '123456')
|
||||
cy.visit('/inpatient/nurse-station')
|
||||
cy.get('[data-cy="order-table"] tbody tr').first().find('[data-cy="btn-execute"]').click()
|
||||
cy.get('[data-cy="confirm-execute-btn"]').click()
|
||||
|
||||
// 2. 切换至药房,验证需申请模式下明细单与汇总单均不可见
|
||||
cy.login('yjk1', '123456')
|
||||
cy.visit('/pharmacy/inpatient-dispensing')
|
||||
cy.get('[data-cy="dispensing-detail-table"] tbody').should('contain', '暂无数据')
|
||||
cy.get('[data-cy="dispensing-summary-table"] tbody').should('contain', '暂无数据')
|
||||
|
||||
// 3. 护士执行汇总发药申请
|
||||
cy.login('wx', '123456')
|
||||
cy.visit('/inpatient/nurse-station')
|
||||
cy.get('[data-cy="btn-summary-apply"]').click()
|
||||
cy.get('[data-cy="confirm-apply-btn"]').click()
|
||||
|
||||
// 4. 药房刷新,验证明细单与汇总单同步显示
|
||||
cy.login('yjk1', '123456')
|
||||
cy.visit('/pharmacy/inpatient-dispensing')
|
||||
cy.get('[data-cy="dispensing-detail-table"] tbody tr').should('have.length.greaterThan', 0)
|
||||
cy.get('[data-cy="dispensing-summary-table"] tbody tr').should('have.length.greaterThan', 0)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user