fix: 收口管理端页面权限与工作流运行授权
- 页面选项接口改用所属页面权限并返回最小数据视图 - 统一校验工作流引用、租户、状态与定时任务执行主体 - 补充聊天记录权限迁移和权限隔离回归测试
This commit is contained in:
@@ -78,7 +78,14 @@ vi.mock('element-plus', () => ({
|
||||
},
|
||||
}),
|
||||
ElInput: defineComponent({ name: 'ElInput', setup: () => () => h('input') }),
|
||||
ElMessage: { success: vi.fn() },
|
||||
ElMessage: { error: vi.fn(), success: vi.fn() },
|
||||
ElOption: defineComponent({ name: 'ElOption', setup: () => () => h('div') }),
|
||||
ElSelect: defineComponent({
|
||||
name: 'ElSelect',
|
||||
setup(_, { slots }) {
|
||||
return () => h('div', slots.default?.());
|
||||
},
|
||||
}),
|
||||
}));
|
||||
|
||||
describe('sys job modal', () => {
|
||||
@@ -112,7 +119,8 @@ describe('sys job modal', () => {
|
||||
await flushPromises();
|
||||
|
||||
expect(apiMocks.get).toHaveBeenCalledWith(
|
||||
'/api/v1/workflow/getRunningParameters?id=101',
|
||||
'/api/v1/sysJob/workflowRunningParameters',
|
||||
{ params: { id: '101' } },
|
||||
);
|
||||
expect(wrapper.get('form').attributes('data-loading')).toBe('false');
|
||||
expect(wrapper.text()).toContain('所选工作流已不可用,请重新选择');
|
||||
|
||||
Reference in New Issue
Block a user