@@ -46,10 +46,10 @@ describe('routes/Settings.tsx', () => {
4646
4747 it ( 'should press the logout' , async ( ) => {
4848 const logoutMock = jest . fn ( ) ;
49- let getByLabelText ;
49+ let getByTitle ;
5050
5151 await act ( async ( ) => {
52- const { getByLabelText : getByLabelTextLocal } = render (
52+ const { getByTitle : getByLabelTextLocal } = render (
5353 < AppContext . Provider
5454 value = { {
5555 settings : mockSettings ,
@@ -63,10 +63,10 @@ describe('routes/Settings.tsx', () => {
6363 </ AppContext . Provider > ,
6464 ) ;
6565
66- getByLabelText = getByLabelTextLocal ;
66+ getByTitle = getByLabelTextLocal ;
6767 } ) ;
6868
69- fireEvent . click ( getByLabelText ( 'Logout' ) ) ;
69+ fireEvent . click ( getByTitle ( 'Logout' ) ) ;
7070
7171 expect ( logoutMock ) . toHaveBeenCalledTimes ( 1 ) ;
7272
@@ -265,10 +265,10 @@ describe('routes/Settings.tsx', () => {
265265 } ) ;
266266
267267 it ( 'should go to the enterprise login route' , async ( ) => {
268- let getByLabelText ;
268+ let getByTitle ;
269269
270270 await act ( async ( ) => {
271- const { getByLabelText : getByLabelTextLocal } = render (
271+ const { getByTitle : getByTitleLocal } = render (
272272 < AppContext . Provider
273273 value = { {
274274 settings : mockSettings ,
@@ -280,20 +280,20 @@ describe('routes/Settings.tsx', () => {
280280 </ MemoryRouter >
281281 </ AppContext . Provider > ,
282282 ) ;
283- getByLabelText = getByLabelTextLocal ;
283+ getByTitle = getByTitleLocal ;
284284 } ) ;
285285
286- fireEvent . click ( getByLabelText ( 'Login with GitHub Enterprise' ) ) ;
286+ fireEvent . click ( getByTitle ( 'Login with GitHub Enterprise' ) ) ;
287287 expect ( mockNavigate ) . toHaveBeenNthCalledWith ( 1 , '/login-enterprise' , {
288288 replace : true ,
289289 } ) ;
290290 } ) ;
291291
292292 it ( 'should quit the app' , async ( ) => {
293- let getByLabelText ;
293+ let getByTitle ;
294294
295295 await act ( async ( ) => {
296- const { getByLabelText : getByLabelTextLocal } = render (
296+ const { getByTitle : getByTitleLocal } = render (
297297 < AppContext . Provider
298298 value = { { settings : mockSettings , accounts : mockAccounts } }
299299 >
@@ -302,10 +302,10 @@ describe('routes/Settings.tsx', () => {
302302 </ MemoryRouter >
303303 </ AppContext . Provider > ,
304304 ) ;
305- getByLabelText = getByLabelTextLocal ;
305+ getByTitle = getByTitleLocal ;
306306 } ) ;
307307
308- fireEvent . click ( getByLabelText ( 'Quit Gitify' ) ) ;
308+ fireEvent . click ( getByTitle ( 'Quit Gitify' ) ) ;
309309 expect ( ipcRenderer . send ) . toHaveBeenCalledWith ( 'app-quit' ) ;
310310 } ) ;
311311
0 commit comments