diff --git a/webapp/src/components/Login.test.js b/webapp/src/components/Login.test.js index af02d63..5eba7a5 100644 --- a/webapp/src/components/Login.test.js +++ b/webapp/src/components/Login.test.js @@ -32,7 +32,7 @@ describe('Login component', () => { const usernameInput = screen.getByLabelText(/Username/i); const passwordInput = screen.getByLabelText(/Password/i); - const loginButton = screen.getByRole('button', { name: /Login/i }); + const loginButton = screen.getByRole('button', { name: /Log In/i }); const mock = jest.fn(); jest.mock('react-router-dom', () => ({ useNavigate: () => mock, @@ -73,7 +73,7 @@ describe('Login component', () => { const usernameInput = screen.getByLabelText(/Username/i); const passwordInput = screen.getByLabelText(/Password/i); - const loginButton = screen.getByRole('button', { name: /Login/i }); + const loginButton = screen.getByRole('button', { name: /Log In/i }); // Mock the axios.post request to simulate an error response mockAxios.onPost('http://localhost:8000/login').reply(401, { error: 'Unauthorized' }); diff --git a/webapp/src/components/Question.jsx b/webapp/src/components/Question.jsx index 7d03623..8465344 100644 --- a/webapp/src/components/Question.jsx +++ b/webapp/src/components/Question.jsx @@ -26,6 +26,7 @@ const Question = (props) => { }, []); useEffect(() => { + console.log("Hmmm") const interval = setInterval(() => { if (renderedImages === imagesPerQuestion) { setCounter((prevCounter) => prevCounter + 0.4); @@ -133,7 +134,8 @@ const Question = (props) => {