feat: add bundled OpenCode skills and refine module flow
Some checks failed
Electron E2E / Electron E2E (macos-latest) (push) Has been cancelled
Electron E2E / Electron E2E (ubuntu-latest) (push) Has been cancelled
Electron E2E / Electron E2E (windows-latest) (push) Has been cancelled

This commit is contained in:
inman
2026-08-14 18:15:55 +08:00
parent 88f9ee8708
commit c809002180
31 changed files with 1153 additions and 241 deletions

View File

@@ -150,8 +150,11 @@ describe('ProjectConfiguration', () => {
] as const;
for (const [resourceId, title] of resourceDrawers) {
fireEvent.click(screen.getByTestId(resourceId));
expect(await screen.findByRole('dialog', { name: title })).toBeInTheDocument();
fireEvent.click(screen.getByRole('button', { name: '关闭' }));
const drawer = await screen.findByRole('dialog', { name: title });
expect(drawer).toBeInTheDocument();
const closeButton = within(drawer).getByRole('button', { name: '关闭' });
expect(closeButton).toHaveClass('h-10', 'w-10', 'shrink-0');
fireEvent.click(closeButton);
await waitFor(() => expect(screen.queryByRole('dialog', { name: title })).not.toBeInTheDocument());
}
});