Fix Bug #550: AI修复
This commit is contained in:
@@ -3,6 +3,26 @@ import { test, expect } from '@playwright/test';
|
||||
// 原有回归测试用例...
|
||||
// test('Bug #544 排队列表状态过滤 @bug544 @regression', async ({ page }) => { ... });
|
||||
|
||||
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');
|
||||
});
|
||||
});
|
||||
|
||||
test.describe('Bug #550 Regression', () => {
|
||||
test('检查申请项目选择交互优化 @bug550 @regression', async ({ page }) => {
|
||||
await page.goto('/outpatient/exam');
|
||||
@@ -32,23 +52,3 @@ 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');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user