From 8ab322aa702b7db2f03385fdc1ee621bc98a8b14 Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Thu, 11 Apr 2024 15:57:48 +0000 Subject: [PATCH] fix: logout from (#998) --- src/routes/Settings.test.tsx | 2 +- src/routes/Settings.tsx | 2 +- src/routes/__snapshots__/Settings.test.tsx.snap | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/routes/Settings.test.tsx b/src/routes/Settings.test.tsx index 26ba42a90..eefc923b3 100644 --- a/src/routes/Settings.test.tsx +++ b/src/routes/Settings.test.tsx @@ -64,7 +64,7 @@ describe('routes/Settings.tsx', () => { ); }); - fireEvent.click(screen.getByTitle('Logout octocat')); + fireEvent.click(screen.getByTitle('Logout from octocat')); expect(logoutMock).toHaveBeenCalledTimes(1); diff --git a/src/routes/Settings.tsx b/src/routes/Settings.tsx index 89eb56c25..ddc94a448 100644 --- a/src/routes/Settings.tsx +++ b/src/routes/Settings.tsx @@ -244,7 +244,7 @@ export const SettingsRoute: FC = () => {