Fix Bug #544: AI修复
This commit is contained in:
@@ -58,10 +58,44 @@ describe('Bug #550: 检查申请项目选择交互优化', () => {
|
||||
cy.get('.selected-card .card-body .method-row').should('have.length.greaterThan', 0);
|
||||
|
||||
// 验证已删除“项目套餐明细”冗余标签
|
||||
cy.get('.selected-card .card-body').should('not.contain', '项目套餐明细');
|
||||
|
||||
// 验证方法可独立勾选/取消
|
||||
cy.get('.selected-card .card-body .method-row').first().find('input[type="checkbox"]').click();
|
||||
cy.get('.selected-card .card-body .method-row').first().find('input[type="checkbox"]').should('be.checked');
|
||||
});
|
||||
});
|
||||
|
||||
// @bug544 @regression
|
||||
describe('Bug #544: 智能分诊队列显示完诊状态及历史查询', () => {
|
||||
beforeEach(() => {
|
||||
cy.visit('/triage/smart-queue');
|
||||
cy.intercept('GET', '/api/triage/queue/list*', {
|
||||
statusCode: 200,
|
||||
body: {
|
||||
rows: [
|
||||
{ queueNo: 'A001', patientName: '张三', status: 'WAITING', statusName: '候诊', triageTime: '2026-05-26 09:00:00', deptName: '呼吸内科' },
|
||||
{ queueNo: 'A002', patientName: '李四', status: 'COMPLETED', statusName: '完诊', triageTime: '2026-05-26 08:30:00', deptName: '呼吸内科' }
|
||||
],
|
||||
total: 2
|
||||
}
|
||||
}).as('getQueueList');
|
||||
});
|
||||
|
||||
it('1. 列表应显示“完诊”状态患者,无状态过滤拦截', () => {
|
||||
cy.wait('@getQueueList');
|
||||
cy.get('.el-table__body-wrapper').contains('李四').should('be.visible');
|
||||
cy.get('.el-table__body-wrapper').contains('完诊').should('be.visible');
|
||||
cy.get('.el-tag--success').should('contain', '完诊');
|
||||
});
|
||||
|
||||
it('2. 支持历史队列查询(日期范围选择器默认当天)', () => {
|
||||
cy.get('.el-date-editor').should('be.visible');
|
||||
cy.contains('查询').click();
|
||||
cy.wait('@getQueueList');
|
||||
cy.get('.el-table__body-wrapper').should('be.visible');
|
||||
|
||||
// 验证切换历史日期后重新请求
|
||||
cy.get('.el-date-editor').click();
|
||||
cy.get('.el-picker-panel__content').contains('25').click();
|
||||
cy.get('.el-picker-panel__content').contains('26').click();
|
||||
cy.contains('查询').click();
|
||||
cy.wait('@getQueueList');
|
||||
cy.get('.el-table__body-wrapper').should('be.visible');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user