25 lines
873 B
TypeScript
Executable File
25 lines
873 B
TypeScript
Executable File
import { describe, it, expect } from 'cypress';
|
||
|
||
describe('Bug Regression Tests', () => {
|
||
// 原有回归测试用例保留在此处...
|
||
|
||
it('@bug561 @regression 门诊医生站-医嘱总量单位应正确显示诊疗目录配置值', () => {
|
||
// 1. 登录门诊医生账号
|
||
cy.login('doctor1', '123456');
|
||
cy.visit('/outpatient/doctor-station');
|
||
|
||
// 2. 进入患者医嘱列表页
|
||
cy.get('.patient-list .patient-item').first().click();
|
||
cy.get('.order-tab').click();
|
||
|
||
// 3. 验证总量单位字段不包含 'null' 且符合预期格式(如 "1 次")
|
||
cy.get('.order-table .total-unit-cell').each(($el) => {
|
||
const text = $el.text().trim();
|
||
expect(text).to.not.equal('null');
|
||
expect(text).to.not.equal('');
|
||
// 验证格式为 "数字 + 空格 + 单位"
|
||
expect(text).to.match(/^\d+\s+\S+$/);
|
||
});
|
||
});
|
||
});
|