From fca0767abc994a0cdac93fa78cb8b5850bea6b83 Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Fri, 27 Sep 2024 09:51:13 -0700 Subject: [PATCH] refactor: use sentence case for interaction (#1558) * refactor: rename `Done` and `Read` to `done` and `read` Signed-off-by: Adam Setch * refactor: mark repository sentence case Signed-off-by: Adam Setch --------- Signed-off-by: Adam Setch --- src/components/NotificationRow.test.tsx | 4 +- src/components/NotificationRow.tsx | 4 +- .../RepositoryNotifications.test.tsx | 4 +- src/components/RepositoryNotifications.tsx | 4 +- .../AccountNotifications.test.tsx.snap | 32 +++++------ .../NotificationRow.test.tsx.snap | 48 ++++++++-------- .../RepositoryNotifications.test.tsx.snap | 56 +++++++++---------- .../settings/NotificationSettings.tsx | 4 +- src/utils/helpers.ts | 2 +- 9 files changed, 79 insertions(+), 79 deletions(-) diff --git a/src/components/NotificationRow.test.tsx b/src/components/NotificationRow.test.tsx index da8813b4c..8432db2ae 100644 --- a/src/components/NotificationRow.test.tsx +++ b/src/components/NotificationRow.test.tsx @@ -204,7 +204,7 @@ describe('components/NotificationRow.tsx', () => { , ); - fireEvent.click(screen.getByTitle('Mark as Read')); + fireEvent.click(screen.getByTitle('Mark as read')); expect(markNotificationRead).toHaveBeenCalledTimes(1); }); @@ -224,7 +224,7 @@ describe('components/NotificationRow.tsx', () => { , ); - fireEvent.click(screen.getByTitle('Mark as Done')); + fireEvent.click(screen.getByTitle('Mark as done')); expect(markNotificationDone).toHaveBeenCalledTimes(1); }); diff --git a/src/components/NotificationRow.tsx b/src/components/NotificationRow.tsx index 1f0752f22..c5299372c 100644 --- a/src/components/NotificationRow.tsx +++ b/src/components/NotificationRow.tsx @@ -131,7 +131,7 @@ export const NotificationRow: FC = ({ {isMarkAsDoneFeatureSupported(notification.account) && ( { @@ -142,7 +142,7 @@ export const NotificationRow: FC = ({ /> )} { diff --git a/src/components/RepositoryNotifications.test.tsx b/src/components/RepositoryNotifications.test.tsx index 635463ff2..c2bbf92c6 100644 --- a/src/components/RepositoryNotifications.test.tsx +++ b/src/components/RepositoryNotifications.test.tsx @@ -64,7 +64,7 @@ describe('components/RepositoryNotifications.tsx', () => { , ); - fireEvent.click(screen.getByTitle('Mark Repository as Read')); + fireEvent.click(screen.getByTitle('Mark repository as read')); expect(markRepoNotificationsRead).toHaveBeenCalledWith( mockSingleNotification, @@ -80,7 +80,7 @@ describe('components/RepositoryNotifications.tsx', () => { , ); - fireEvent.click(screen.getByTitle('Mark Repository as Done')); + fireEvent.click(screen.getByTitle('Mark repository as done')); expect(markRepoNotificationsDone).toHaveBeenCalledWith( mockSingleNotification, diff --git a/src/components/RepositoryNotifications.tsx b/src/components/RepositoryNotifications.tsx index c07baa892..fa5604432 100644 --- a/src/components/RepositoryNotifications.tsx +++ b/src/components/RepositoryNotifications.tsx @@ -83,7 +83,7 @@ export const RepositoryNotifications: FC = ({ {isMarkAsDoneFeatureSupported(repoNotifications[0].account) && ( ) => { @@ -96,7 +96,7 @@ export const RepositoryNotifications: FC = ({ /> )} ) => { diff --git a/src/components/__snapshots__/AccountNotifications.test.tsx.snap b/src/components/__snapshots__/AccountNotifications.test.tsx.snap index 51ee5543b..6334f5343 100644 --- a/src/components/__snapshots__/AccountNotifications.test.tsx.snap +++ b/src/components/__snapshots__/AccountNotifications.test.tsx.snap @@ -611,11 +611,11 @@ exports[`components/AccountNotifications.tsx should render itself - group notifi >