Skip to content

Commit

Permalink
refactor: adopt primer ui components
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Setch <adam.setch@outlook.com>
  • Loading branch information
setchy committed Oct 13, 2024
1 parent 717be94 commit 79e7e8b
Show file tree
Hide file tree
Showing 3 changed files with 539 additions and 224 deletions.
6 changes: 3 additions & 3 deletions src/renderer/components/RepositoryNotifications.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe('renderer/components/RepositoryNotifications.tsx', () => {
</AppContext.Provider>,
);

fireEvent.click(screen.getByTitle('Mark repository as read'));
fireEvent.click(screen.getByLabelText('Mark repository as read'));

expect(markNotificationsAsRead).toHaveBeenCalledWith(
mockGitHubNotifications,
Expand All @@ -77,7 +77,7 @@ describe('renderer/components/RepositoryNotifications.tsx', () => {
</AppContext.Provider>,
);

fireEvent.click(screen.getByTitle('Mark repository as done'));
fireEvent.click(screen.getByLabelText('Mark repository as done'));

expect(markNotificationsAsDone).toHaveBeenCalledWith(
mockGitHubNotifications,
Expand All @@ -100,7 +100,7 @@ describe('renderer/components/RepositoryNotifications.tsx', () => {
render(<RepositoryNotifications {...props} />);
});

fireEvent.click(screen.getByTitle('Hide repository notifications'));
fireEvent.click(screen.getByLabelText('Hide repository notifications'));

const tree = render(<RepositoryNotifications {...props} />);
expect(tree).toMatchSnapshot();
Expand Down
Loading

0 comments on commit 79e7e8b

Please sign in to comment.