diff --git a/src/App.test.tsx b/src/App.test.tsx index 6500ece..9626cc3 100644 --- a/src/App.test.tsx +++ b/src/App.test.tsx @@ -4,13 +4,13 @@ import App from './App'; test('renders Prompt Composer tab', () => { render(); - const tab = screen.getByText('Prompt Composer'); + const tab = screen.getByText('prompt-composer-tab'); expect(tab).toBeInTheDocument(); }); test('changes tab when clicked', () => { render(); - const tab = screen.getByText('Prompt Composer'); + const tab = screen.getByLabelText('text-prompt-tab'); fireEvent.click(tab); - expect(screen.getByText('Text Prompt')).toBeInTheDocument(); + expect(screen.getByLabelText('text-area')).toBeInTheDocument(); }); diff --git a/src/App.tsx b/src/App.tsx index f2c4085..695b0d2 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -47,9 +47,9 @@ function App() { return ( <> - - - + + + @@ -57,7 +57,7 @@ function App() {
- +