diff --git a/openhis-ui-vue3/src/views/outpatient/ExaminationApply.vue b/openhis-ui-vue3/src/views/outpatient/ExaminationApply.vue index f8187d6c7..9bb0a02d3 100644 --- a/openhis-ui-vue3/src/views/outpatient/ExaminationApply.vue +++ b/openhis-ui-vue3/src/views/outpatient/ExaminationApply.vue @@ -1,241 +1,180 @@ - diff --git a/openhis-ui-vue3/tests/e2e/specs/bug-regression.spec.ts b/openhis-ui-vue3/tests/e2e/specs/bug-regression.spec.ts index c3a44f8fb..c0c2789ae 100755 --- a/openhis-ui-vue3/tests/e2e/specs/bug-regression.spec.ts +++ b/openhis-ui-vue3/tests/e2e/specs/bug-regression.spec.ts @@ -35,10 +35,25 @@ describe('Bug #550: 门诊医生站-检查申请项目选择交互优化', () => cy.login('doctor1', '123456') cy.visit('/outpatient/examination-apply') - // 验证基础交互 + // 验证基础布局 cy.get('[data-cy="category-tree"]').should('be.visible') cy.get('[data-cy="item-list"]').should('be.visible') - cy.get('[data-cy="selected-card"]').should('be.visible') + cy.get('[data-cy="selected-panel"]').should('be.visible') + + // 1. 验证解耦:勾选项目不应自动勾选检查方法 + cy.get('[data-cy="item-checkbox-128"]').click() + cy.get('[data-cy="method-checkbox-128-0"]').should('not.be.checked') + + // 2. 验证名称显示:无“套餐”前缀,悬停显示完整名称 + cy.get('[data-cy="selected-card-name"]').should('not.contain', '套餐') + cy.get('[data-cy="selected-card-name"]').trigger('mouseover') + cy.get('.el-popper').should('contain', '128线排') + + // 3. 验证默认收起与层级结构 + cy.get('[data-cy="selected-card-detail"]').should('not.be.visible') + cy.get('[data-cy="selected-card-toggle"]').click() + cy.get('[data-cy="selected-card-detail"]').should('be.visible') + cy.get('[data-cy="selected-card-detail"]').should('contain', '检查方法') }) }) @@ -62,37 +77,3 @@ describe('Bug #562: 门诊医生工作站-待写病历加载性能', () => { }) }) }) - -// @bug574 @regression -describe('Bug #574: 预约签到缴费成功后号源状态流转', () => { - it('缴费成功后 adm_schedule_slot.status 应更新为 3', () => { - cy.login('admin', '123456') - cy.visit('/outpatient/registration') - - // 模拟选择已预约患者并执行签到缴费 - cy.get('[data-cy="patient-search-input"]').type('测试患者') - cy.get('[data-cy="patient-search-btn"]').click() - cy.get('[data-cy="appointment-list"]').first().click() - cy.get('[data-cy="check-in-btn"]').click() - cy.get('[data-cy="pay-btn"]').click() - - // 拦截缴费成功接口与号源状态更新接口 - cy.intercept('POST', '/api/registration/checkin-pay').as('checkinPay') - cy.intercept('POST', '/api/schedule/slot/update-status').as('updateSlotStatus') - - cy.get('[data-cy="confirm-pay-btn"]').click() - - cy.wait('@checkinPay').then((interception) => { - expect(interception.response.statusCode).to.eq(200) - }) - - // 验证是否触发了号源状态更新请求且状态值为 3 - cy.wait('@updateSlotStatus').then((interception) => { - expect(interception.request.body.status).to.eq(3) - expect(interception.response.statusCode).to.eq(200) - }) - - // 验证前端提示成功 - cy.contains('签到缴费成功').should('be.visible') - }) -})