Fix Bug #544: AI修复

This commit is contained in:
2026-05-27 03:10:21 +08:00
parent b552dc811d
commit 109425dcb6
4 changed files with 156 additions and 78 deletions

View File

@@ -34,4 +34,29 @@ describe('HIS Regression Tests', () => {
cy.get('[data-testid="dispensing-summary-table"] tbody tr').should('have.length.greaterThan', 0)
})
})
describe('Bug #544: 智能分诊队列显示完诊状态及历史查询', { tags: ['@bug544', '@regression'] }, () => {
beforeEach(() => {
cy.login('nkhs1', '123456')
cy.visit('/triage/queue-management')
})
it('应显示所有状态患者(含完诊)且支持按日期查询历史队列', () => {
// 1. 验证默认加载当天数据
cy.get('[data-testid="queue-date-picker"]').should('exist')
cy.get('[data-testid="queue-date-picker"]').invoke('val').then(val => {
expect(val).to.match(/\d{4}-\d{2}-\d{2}/) // 默认当天格式
})
// 2. 验证列表包含“完诊”状态(不再被自动过滤)
cy.get('[data-testid="queue-table"] tbody tr').should('have.length.greaterThan', 0)
cy.get('[data-testid="queue-table"]').contains('完诊').should('exist')
// 3. 切换历史日期并验证数据刷新
cy.get('[data-testid="queue-date-picker"]').click()
cy.get('.el-date-table td.available').first().click() // 选择历史某天
cy.get('[data-testid="search-btn"]').click()
cy.get('[data-testid="queue-table"] tbody tr').should('have.length.greaterThan', 0)
})
})
})