feat: integrate learning module
This commit is contained in:
@@ -334,7 +334,6 @@ describe('AgentConversationSidebar', () => {
|
||||
|
||||
expect(await screen.findByLabelText('绑定技能:开发浏览器')).toBeInTheDocument();
|
||||
expect(hostApiFetchMock).toHaveBeenCalledWith('/api/opencode/skills');
|
||||
fireEvent.click(screen.getByLabelText('绑定技能:开发浏览器'));
|
||||
fireEvent.change(screen.getByLabelText(/伙伴名称/), { target: { value: '小李' } });
|
||||
fireEvent.change(screen.getByLabelText(/职责简述/), { target: { value: '负责整理资料。' } });
|
||||
fireEvent.click(screen.getByRole('button', { name: '创建并开始对话' }));
|
||||
@@ -344,7 +343,7 @@ describe('AgentConversationSidebar', () => {
|
||||
})));
|
||||
});
|
||||
|
||||
it('defaults only the planning Skills and leaves presentation optional', async () => {
|
||||
it('defaults the browser and planning Skills and leaves presentation optional', async () => {
|
||||
hostApiFetchMock.mockResolvedValue({
|
||||
skills: [
|
||||
{ name: 'agent-browser' },
|
||||
@@ -365,7 +364,7 @@ describe('AgentConversationSidebar', () => {
|
||||
expect(grilling).toBeChecked();
|
||||
expect(planning).toBeChecked();
|
||||
expect(slides).not.toBeChecked();
|
||||
expect(browser).not.toBeChecked();
|
||||
expect(browser).toBeChecked();
|
||||
});
|
||||
fireEvent.click(grilling);
|
||||
expect(grilling).not.toBeChecked();
|
||||
@@ -374,7 +373,7 @@ describe('AgentConversationSidebar', () => {
|
||||
fireEvent.click(screen.getByRole('button', { name: '创建并开始对话' }));
|
||||
|
||||
await waitFor(() => expect(callbacks.onCreateAgent).toHaveBeenCalledWith(expect.objectContaining({
|
||||
skillIds: ['planning-with-files'],
|
||||
skillIds: ['agent-browser', 'planning-with-files'],
|
||||
})));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user