收口 Makelore 客户端变更
This commit is contained in:
@@ -162,10 +162,10 @@ describe('Settings runtime workspace', () => {
|
||||
renderSettings();
|
||||
|
||||
expect(await screen.findByRole('heading', { name: 'appearance.title' })).toBeInTheDocument();
|
||||
expect(screen.queryByTestId('settings-opencode-workspace')).not.toBeInTheDocument();
|
||||
expect(screen.queryByText('Network')).not.toBeInTheDocument();
|
||||
expect(screen.queryByText('updates.title')).not.toBeInTheDocument();
|
||||
expect(screen.queryByText('advanced.title')).not.toBeInTheDocument();
|
||||
expect(screen.getByTestId('settings-opencode-workspace').closest('[data-state]')).toHaveAttribute('data-state', 'closed');
|
||||
expect(screen.getByText('Network').closest('[data-state]')).toHaveAttribute('data-state', 'closed');
|
||||
expect(screen.getByText('updates.title').closest('[data-state]')).toHaveAttribute('data-state', 'closed');
|
||||
expect(screen.getByText('advanced.title').closest('[data-state]')).toHaveAttribute('data-state', 'closed');
|
||||
|
||||
fireEvent.click(screen.getByRole('button', { name: 'appearance.showMoreSettings' }));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user