当手术计费弹窗中点击"签发"耗材时,因耗材的locationId(发放库房)为空导致后端异常。 在DoctorStationAdviceAppServiceImpl.handDevice方法中,当locationId为null时,使用登录用户的科室ID作为默认值, 与NurseBillingAppService中的处理方式保持一致。
18 lines
576 B
TypeScript
Executable File
18 lines
576 B
TypeScript
Executable File
import { test as base } from '@playwright/test';
|
|
import { TEST_USERS } from '../utils/test-data';
|
|
|
|
export const test = base.extend({
|
|
async authenticatedPage({ page }, use) {
|
|
// 登录
|
|
await page.goto('/');
|
|
await page.fill('input[placeholder="请输入用户名"]', TEST_USERS.admin.username);
|
|
await page.fill('input[placeholder="请输入密码"]', TEST_USERS.admin.password);
|
|
await page.click('button:has-text("登录")');
|
|
await page.waitForURL(/.*(dashboard|home).*/);
|
|
|
|
await use(page);
|
|
},
|
|
});
|
|
|
|
export { expect } from '@playwright/test';
|