Files
his/openhis-ui-vue3/tests/e2e/specs/bug-regression.spec.ts
2026-05-27 02:20:04 +08:00

25 lines
873 B
TypeScript
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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+$/);
});
});
});