@@ -45,7 +45,6 @@ describe('CustodyPage', function () {
4545 type : 'GK8' ,
4646 envName : 'gk8-prod' ,
4747 name : 'GK8' ,
48- apiUrl : 'https://saturn-custody.dev.metamask-institutional.io' ,
4948 iconUrl :
5049 'https://saturn-custody-ui.dev.metamask-institutional.io/saturn.svg' ,
5150 displayName : 'gk8' ,
@@ -59,7 +58,6 @@ describe('CustodyPage', function () {
5958 type : 'Saturn B' ,
6059 envName : 'saturn-prod' ,
6160 name : 'Saturn Custody B' ,
62- apiUrl : 'https://saturn-custody.dev.metamask-institutional.io' ,
6361 iconUrl :
6462 'https://saturn-custody-ui.dev.metamask-institutional.io/saturn.svg' ,
6563 displayName : 'Saturn Custody B' ,
@@ -381,42 +379,6 @@ describe('CustodyPage', function () {
381379 } ) ;
382380 } ) ;
383381
384- it ( 'handles network errors correctly' , async ( ) => {
385- mockedGetCustodianAccounts . mockImplementation ( ( ) => async ( dispatch ) => {
386- dispatch ( { type : 'TYPE' , payload : [ ] } ) ;
387- throw new Error ( 'Network Error' ) ;
388- } ) ;
389-
390- const newMockStore = {
391- ...mockStore ,
392- metamask : {
393- ...mockStore . metamask ,
394- institutionalFeatures : {
395- connectRequests : [
396- {
397- token : 'token' ,
398- environment : 'Saturn A' ,
399- service : 'Saturn A' ,
400- } ,
401- ] ,
402- } ,
403- } ,
404- } ;
405-
406- const newStore = configureMockStore ( [ thunk ] ) ( newMockStore ) ;
407-
408- await act ( async ( ) => {
409- renderWithProvider ( < CustodyPage /> , newStore ) ;
410- } ) ;
411-
412- await waitFor ( ( ) => {
413- expect ( screen . getByTestId ( 'connect-error' ) ) . toBeDefined ( ) ;
414- expect ( screen . getByTestId ( 'connect-error' ) ) . toHaveTextContent (
415- 'Network error. Please ensure you have entered the correct API URL' ,
416- ) ;
417- } ) ;
418- } ) ;
419-
420382 it ( 'does open confirm Connect Custodian modal when custodian display name is not gk8' , async ( ) => {
421383 const newMockStore = {
422384 ...mockStore ,
0 commit comments