diff --git a/src/routes/Settings.test.tsx b/src/routes/Settings.test.tsx index e8b608b9e..23e1f7d9a 100644 --- a/src/routes/Settings.test.tsx +++ b/src/routes/Settings.test.tsx @@ -47,10 +47,10 @@ describe('routes/Settings.tsx', () => { it('should press the logout', async () => { const logoutMock = jest.fn(); - let getByTitle; + let getByRole; await act(async () => { - const { getByTitle: getByLabelTextLocal } = render( + const { getByRole: getByRoleLocal } = render( { , ); - getByTitle = getByLabelTextLocal; + getByRole = getByRoleLocal; }); - fireEvent.click(getByTitle('Logout')); + fireEvent.click(getByRole('Logout')); expect(logoutMock).toHaveBeenCalledTimes(1); diff --git a/src/routes/Settings.tsx b/src/routes/Settings.tsx index 3017d2941..ec109c622 100644 --- a/src/routes/Settings.tsx +++ b/src/routes/Settings.tsx @@ -230,10 +230,14 @@ export const SettingsRoute: React.FC = () => {