@@ -413,47 +413,6 @@ describe('organization setup entry points', () => {
413413 expect ( mocks . push ) . toHaveBeenCalledWith ( '/o/org-1/settings/integrations/sources/new-source' )
414414 } )
415415
416- it ( 'honors explicit member-source URLs and clears both setup parameters on close' , async ( ) => {
417- useConnectorSetupStore
418- . getState ( )
419- . saveDraft ( 'user-1:organization:org-1:kb-search:github:members' , {
420- sourceConfig : { repository : 'acme/docs' } ,
421- canonicalModes : { } ,
422- accessMode : 'members' ,
423- credentialId : 'cred-source' ,
424- contentCredentialId : null ,
425- disabledTagIds : [ ] ,
426- savedAt : Date . now ( ) ,
427- } )
428- await render ( organizationSetup ( ) , '?addConnector=github&source-access=members&search=keep' )
429-
430- expect ( mocks . replace ) . not . toHaveBeenCalled ( )
431- expect ( document . querySelector ( 'button[aria-label="Choose another source"]' ) ) . toBeNull ( )
432- expect ( document . body . textContent ) . not . toContain ( 'Sync using' )
433- expect ( document . body . textContent ) . not . toContain ( 'Sync documents with' )
434- expect ( button ( 'Add source' ) ) . toBeEnabled ( )
435- await click ( button ( 'Add source' ) )
436- expect ( mocks . create ) . toHaveBeenCalledWith (
437- expect . objectContaining ( {
438- connectorType : 'github' ,
439- accessMode : 'members' ,
440- sourceConfig : { repository : 'acme/docs' } ,
441- } ) ,
442- expect . any ( Object )
443- )
444- await click ( button ( 'Cancel' ) )
445- expect ( mocks . urlUpdate ) . toHaveBeenLastCalledWith (
446- expect . objectContaining ( { queryString : '?search=keep' } )
447- )
448- expect ( document . querySelector ( '[role="dialog"]' ) ) . toBeNull ( )
449- expect ( mocks . push ) . not . toHaveBeenCalled ( )
450- expect (
451- useConnectorSetupStore
452- . getState ( )
453- . getDraft ( 'user-1:organization:org-1:kb-search:github:members' )
454- ) . toBeUndefined ( )
455- } )
456-
457416 it . each ( [ 'github' , 'gmail' , 'google_calendar' , 'jira' ] ) (
458417 'returns old %s organization setup links to personal integrations without loading the index' ,
459418 async ( type ) => {
0 commit comments