Fix Bug #544: AI修复
This commit is contained in:
@@ -61,38 +61,26 @@ describe('Bug #566: 体温单数据录入后图表与表格同步渲染', () =>
|
||||
});
|
||||
});
|
||||
|
||||
// @bug503 @regression
|
||||
describe('Bug #503: 住院发退药明细与汇总单数据触发时机同步', () => {
|
||||
// @bug544 @regression
|
||||
describe('Bug #544: 智能分诊队列显示完诊状态及历史查询', () => {
|
||||
beforeEach(() => {
|
||||
cy.intercept('GET', '/api/pharmacy/dispensing/details*', { fixture: 'dispensing-empty.json' }).as('getDetails');
|
||||
cy.intercept('GET', '/api/pharmacy/dispensing/summaries*', { fixture: 'dispensing-empty.json' }).as('getSummaries');
|
||||
cy.visit('/triage/queue-management');
|
||||
cy.intercept('GET', '/api/triage/queue/list*', { fixture: 'queue-list.json' }).as('getQueueList');
|
||||
});
|
||||
|
||||
it('1. 护士执行医嘱后,药房明细与汇总单均不应显示(需申请模式)', () => {
|
||||
cy.visit('/inpatient/nurse/execution');
|
||||
cy.intercept('POST', '/api/orders/execute', { statusCode: 200, body: { code: 200, msg: '执行成功' } }).as('executeOrder');
|
||||
cy.get('.order-row').first().find('.execute-btn').click();
|
||||
cy.wait('@executeOrder');
|
||||
|
||||
cy.visit('/inpatient/pharmacy/dispensing');
|
||||
cy.wait(['@getDetails', '@getSummaries']);
|
||||
cy.get('.detail-table tbody').should('be.empty');
|
||||
cy.get('.summary-table tbody').should('be.empty');
|
||||
it('1. 列表应默认显示包含“完诊”状态的所有患者', () => {
|
||||
cy.wait('@getQueueList');
|
||||
cy.get('.queue-table').should('be.visible');
|
||||
cy.get('.queue-table .el-table__body-wrapper').contains('完诊').should('exist');
|
||||
});
|
||||
|
||||
it('2. 护士提交汇总发药申请后,明细与汇总单应同时显示', () => {
|
||||
cy.visit('/inpatient/nurse/summary-apply');
|
||||
cy.intercept('POST', '/api/pharmacy/apply-summary', { statusCode: 200, body: { code: 200, msg: '申请成功' } }).as('applySummary');
|
||||
cy.get('.apply-btn').click();
|
||||
cy.wait('@applySummary');
|
||||
|
||||
cy.visit('/inpatient/pharmacy/dispensing');
|
||||
cy.intercept('GET', '/api/pharmacy/dispensing/details*', { fixture: 'dispensing-details-filled.json' }).as('getDetails');
|
||||
cy.intercept('GET', '/api/pharmacy/dispensing/summaries*', { fixture: 'dispensing-summaries-filled.json' }).as('getSummaries');
|
||||
cy.wait(['@getDetails', '@getSummaries']);
|
||||
|
||||
cy.get('.detail-table tbody tr').should('have.length.greaterThan', 0);
|
||||
cy.get('.summary-table tbody tr').should('have.length.greaterThan', 0);
|
||||
cy.get('.detail-table tbody tr').first().find('.summary-id').should('not.be.empty');
|
||||
it('2. 历史队列查询功能可用,默认当天时间', () => {
|
||||
const today = new Date().toISOString().split('T')[0];
|
||||
cy.get('.history-query-section .el-date-editor').should('contain', today);
|
||||
cy.get('.query-form .el-button--primary').click();
|
||||
cy.wait('@getQueueList').then((interception) => {
|
||||
expect(interception.request.query.startDate).to.equal(today);
|
||||
expect(interception.request.query.endDate).to.equal(today);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user