Fix Bug #595: AI修复
This commit is contained in:
@@ -61,30 +61,29 @@ test('Bug #544: 智能分诊队列显示完诊状态及历史查询功能', asyn
|
||||
await expect(dateRangePicker).toBeVisible();
|
||||
});
|
||||
|
||||
// @bug570 @regression
|
||||
test('Bug #570: 门诊预约挂号成功后状态显示为“已预约”且筛选正常', async ({ page }) => {
|
||||
// @bug595 @regression
|
||||
test('Bug #595: 住院护士站医嘱校对列表字段完整性与皮试高亮校验', async ({ page }) => {
|
||||
await page.goto('/login');
|
||||
await page.fill('input[name="username"]', 'admin');
|
||||
await page.fill('input[name="username"]', 'wx');
|
||||
await page.fill('input[name="password"]', '123456');
|
||||
await page.click('button[type="submit"]');
|
||||
await page.waitForURL('/outpatient/appointment');
|
||||
await page.waitForURL('/nurse-station');
|
||||
|
||||
// 1. 选择可用号源并执行预约
|
||||
await page.locator('text=预约').first().click();
|
||||
await page.click('text=确认预约');
|
||||
await page.waitForTimeout(1000);
|
||||
// 进入医嘱校对模块
|
||||
await page.click('text=医嘱校对');
|
||||
await page.waitForSelector('.order-verify-table');
|
||||
|
||||
// 2. 验证预约成功后状态显示为“已预约”,而非“已锁定”
|
||||
const statusTag = page.locator('.el-table__body tr').first().locator('.el-tag');
|
||||
await expect(statusTag).toHaveText('已预约');
|
||||
await expect(statusTag).not.toHaveText('已锁定');
|
||||
// 验证新增字段列是否存在
|
||||
const expectedColumns = ['开始时间', '单次剂量', '总量', '频次/用法', '开嘱医生', '停嘱时间', '停嘱医生', '注射药品', '皮试', '诊断'];
|
||||
for (const col of expectedColumns) {
|
||||
await expect(page.locator(`th:has-text("${col}")`)).toBeVisible();
|
||||
}
|
||||
|
||||
// 3. 筛选“已预约”状态,验证数据正常返回且不为空
|
||||
await page.locator('.el-select').first().click();
|
||||
await page.locator('.el-select-dropdown__item:has-text("已预约")').click();
|
||||
await page.click('text=查询');
|
||||
await page.waitForTimeout(500);
|
||||
// 验证皮试医嘱红色标签高亮
|
||||
const skinTestTag = page.locator('.el-tag--danger:has-text("需皮试")');
|
||||
await expect(skinTestTag).toBeVisible();
|
||||
|
||||
const tableRows = await page.locator('.el-table__body tr').count();
|
||||
expect(tableRows).toBeGreaterThan(0);
|
||||
// 验证数据非空且结构化展示(非纯文本拼接)
|
||||
const doseCell = page.locator('td:has-text("1g")');
|
||||
await expect(doseCell).toBeVisible();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user