Fix Bug #505: AI修复

This commit is contained in:
2026-05-27 05:37:14 +08:00
parent 236942ec48
commit 0188ce465d
2 changed files with 83 additions and 117 deletions

View File

@@ -32,3 +32,23 @@ test.describe('Bug #550 Regression', () => {
await expect(page.locator('text=项目套餐明细')).not.toBeVisible();
});
});
test.describe('Bug #505 Regression', () => {
test('已发药医嘱禁止直接退回 @bug505 @regression', async ({ page }) => {
// 模拟护士登录并进入医嘱校对页面
await page.goto('/nurse/order-verify');
// 假设列表中存在一条状态为“已发药”的药品医嘱
// 勾选该医嘱
await page.locator('el-table__row').first().locator('input[type="checkbox"]').click();
// 点击退回按钮
await page.locator('button:has-text("退回")').click();
// 验证系统拦截提示
await expect(page.locator('.el-message--error')).toContainText('该药品已由药房发放,请先执行退药处理,不可直接退回');
// 验证医嘱未流转至已退回页签(仍停留在已校对)
await expect(page.locator('.el-tabs__item:has-text("已退回") .el-tabs__nav-scroll')).not.toContainText('1');
});
});