feat: add bundled OpenCode skills and refine module flow
This commit is contained in:
@@ -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());
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user