diff --git a/src/routes/LoginWithToken.tsx b/src/routes/LoginWithToken.tsx
index d14285bb2..a90609cf7 100644
--- a/src/routes/LoginWithToken.tsx
+++ b/src/routes/LoginWithToken.tsx
@@ -95,9 +95,9 @@ export const LoginWithToken: React.FC = () => {
Login with an access token
diff --git a/src/routes/Settings.test.tsx b/src/routes/Settings.test.tsx
index 933dd2483..fedbd5c71 100644
--- a/src/routes/Settings.test.tsx
+++ b/src/routes/Settings.test.tsx
@@ -46,10 +46,10 @@ describe('routes/Settings.tsx', () => {
it('should press the logout', async () => {
const logoutMock = jest.fn();
- let getByLabelText;
+ let getByTitle;
await act(async () => {
- const { getByLabelText: getByLabelTextLocal } = render(
+ const { getByTitle: getByLabelTextLocal } = render(
{
,
);
- getByLabelText = getByLabelTextLocal;
+ getByTitle = getByLabelTextLocal;
});
- fireEvent.click(getByLabelText('Logout'));
+ fireEvent.click(getByTitle('Logout'));
expect(logoutMock).toHaveBeenCalledTimes(1);
@@ -265,10 +265,10 @@ describe('routes/Settings.tsx', () => {
});
it('should go to the enterprise login route', async () => {
- let getByLabelText;
+ let getByTitle;
await act(async () => {
- const { getByLabelText: getByLabelTextLocal } = render(
+ const { getByTitle: getByTitleLocal } = render(
{
,
);
- getByLabelText = getByLabelTextLocal;
+ getByTitle = getByTitleLocal;
});
- fireEvent.click(getByLabelText('Login with GitHub Enterprise'));
+ fireEvent.click(getByTitle('Login with GitHub Enterprise'));
expect(mockNavigate).toHaveBeenNthCalledWith(1, '/login-enterprise', {
replace: true,
});
});
it('should quit the app', async () => {
- let getByLabelText;
+ let getByTitle;
await act(async () => {
- const { getByLabelText: getByLabelTextLocal } = render(
+ const { getByTitle: getByTitleLocal } = render(
@@ -302,10 +302,10 @@ describe('routes/Settings.tsx', () => {
,
);
- getByLabelText = getByLabelTextLocal;
+ getByTitle = getByTitleLocal;
});
- fireEvent.click(getByLabelText('Quit Gitify'));
+ fireEvent.click(getByTitle('Quit Gitify'));
expect(ipcRenderer.send).toHaveBeenCalledWith('app-quit');
});
diff --git a/src/routes/Settings.tsx b/src/routes/Settings.tsx
index 78478e2f5..9ee9585c5 100644
--- a/src/routes/Settings.tsx
+++ b/src/routes/Settings.tsx
@@ -84,10 +84,14 @@ export const SettingsRoute: React.FC = () => {
Settings
@@ -165,26 +169,29 @@ export const SettingsRoute: React.FC = () => {
diff --git a/src/routes/__snapshots__/Login.test.tsx.snap b/src/routes/__snapshots__/Login.test.tsx.snap
index 64aacb10f..50030a864 100644
--- a/src/routes/__snapshots__/Login.test.tsx.snap
+++ b/src/routes/__snapshots__/Login.test.tsx.snap
@@ -59,6 +59,7 @@ exports[`routes/Login.tsx should render itself & its children 1`] = `
aria-label="Login with GitHub"
className="w-48 py-2 my-2 bg-gray-300 font-semibold rounded text-xs text-center dark:text-black hover:bg-gray-500 hover:text-white focus:outline-none"
onClick={[Function]}
+ title="Login with GitHub"
>
Login to GitHub
@@ -66,6 +67,7 @@ exports[`routes/Login.tsx should render itself & its children 1`] = `
aria-label="Login with GitHub Enterprise"
className="w-48 py-2 my-2 bg-gray-300 font-semibold rounded text-xs text-center dark:text-black hover:bg-gray-500 hover:text-white focus:outline-none"
onClick={[Function]}
+ title="Login with GitHub Enterprise"
>
Login to GitHub Enterprise
@@ -73,6 +75,7 @@ exports[`routes/Login.tsx should render itself & its children 1`] = `
aria-label="Login with Personal Token"
className="bg-none hover:text-gray-800 dark:text-gray-100 dark:hover:text-gray-300 mt-4 focus:outline-none"
onClick={[Function]}
+ title="Login with Personal Token"
>
or login with a personal token
diff --git a/src/routes/__snapshots__/LoginEnterprise.test.tsx.snap b/src/routes/__snapshots__/LoginEnterprise.test.tsx.snap
index badaf802b..8e139ef8a 100644
--- a/src/routes/__snapshots__/LoginEnterprise.test.tsx.snap
+++ b/src/routes/__snapshots__/LoginEnterprise.test.tsx.snap
@@ -8,12 +8,13 @@ exports[`routes/LoginEnterprise.js renders correctly 1`] = `
className="flex justify-between items-center mt-4 py-2 mx-8"
>