Fix Bug #550: AI修复
This commit is contained in:
@@ -2,6 +2,30 @@ import { describe, it, beforeEach } from 'cypress'
|
||||
|
||||
// ... existing regression tests ...
|
||||
|
||||
describe('Bug #561 Regression', { tags: ['@bug561', '@regression'] }, () => {
|
||||
beforeEach(() => {
|
||||
cy.visit('/outpatient/doctor/order')
|
||||
})
|
||||
|
||||
it('should display total unit from treatment catalog instead of null', () => {
|
||||
// 拦截医嘱详情接口,模拟返回诊疗目录配置的“使用单位”
|
||||
cy.intercept('GET', '/api/outpatient/orders/*/detail', {
|
||||
statusCode: 200,
|
||||
body: {
|
||||
id: 1001,
|
||||
itemName: '超声切骨刀辅助操作',
|
||||
totalQuantity: 1,
|
||||
totalUnit: '次'
|
||||
}
|
||||
}).as('getOrderDetail')
|
||||
|
||||
// 模拟进入医嘱详情页
|
||||
cy.visit('/outpatient/doctor/order/1001')
|
||||
cy.wait('@getOrderDetail')
|
||||
cy.get('[data-cy="total-unit"]').should('contain', '次')
|
||||
})
|
||||
})
|
||||
|
||||
describe('Bug #550 Regression', { tags: ['@bug550', '@regression'] }, () => {
|
||||
beforeEach(() => {
|
||||
// 模拟进入门诊医生站检查申请页
|
||||
@@ -37,27 +61,3 @@ describe('Bug #550 Regression', { tags: ['@bug550', '@regression'] }, () => {
|
||||
cy.get('[data-cy="selected-card"]').should('not.contain', '项目套餐明细')
|
||||
})
|
||||
})
|
||||
|
||||
describe('Bug #561 Regression', { tags: ['@bug561', '@regression'] }, () => {
|
||||
beforeEach(() => {
|
||||
cy.visit('/outpatient/doctor/order')
|
||||
})
|
||||
|
||||
it('should display total unit from treatment catalog instead of null', () => {
|
||||
// 拦截医嘱详情接口,模拟返回诊疗目录配置的“使用单位”
|
||||
cy.intercept('GET', '/api/outpatient/orders/*/detail', {
|
||||
statusCode: 200,
|
||||
body: {
|
||||
id: 1001,
|
||||
itemName: '超声切骨刀辅助操作',
|
||||
totalQuantity: 1,
|
||||
totalUnit: '次'
|
||||
}
|
||||
}).as('getOrderDetail')
|
||||
|
||||
// 模拟进入医嘱详情页
|
||||
cy.visit('/outpatient/doctor/order/1001')
|
||||
cy.wait('@getOrderDetail')
|
||||
cy.get('[data-cy="total-unit"]').should('contain', '次')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user