@@ -56,6 +56,8 @@ const onAbort = vi.fn()
5656
5757describe ( 'DevSessionUI' , ( ) => {
5858 beforeEach ( ( ) => {
59+ mocks . terminalSupportsHyperlinks . mockReturnValue ( false )
60+ mocks . useStdin . mockReturnValue ( { isRawModeSupported : true } )
5961 devSessionStatusManager = new DevSessionStatusManager ( )
6062 devSessionStatusManager . reset ( )
6163 devSessionStatusManager . updateStatus ( initialStatus )
@@ -568,15 +570,16 @@ describe('DevSessionUI', () => {
568570
569571 await waitForInputsToBeReady ( )
570572
571- // Then - shortcuts should be present but URL list should be hidden
573+ // Then - shortcuts with label text should be present but URL list should be hidden
572574 const output = unstyled ( renderInstance . lastFrame ( ) ! )
573- expect ( output ) . toContain ( '(p)' )
574- expect ( output ) . toContain ( '(g)' )
575+ expect ( output ) . toContain ( '(p) Open app preview' )
576+ expect ( output ) . toContain ( '(c) Open Dev Console for extension previews' )
577+ expect ( output ) . toContain ( '(g) Open GraphiQL (Admin API)' )
575578 expect ( output ) . not . toContain ( 'Preview URL:' )
579+ expect ( output ) . not . toContain ( 'Dev Console URL:' )
576580 expect ( output ) . not . toContain ( 'GraphiQL URL:' )
577581
578582 renderInstance . unmount ( )
579- mocks . terminalSupportsHyperlinks . mockReturnValue ( false )
580583 } )
581584
582585 test ( 'shows URL list when terminal does not support hyperlinks' , async ( ) => {
@@ -595,11 +598,13 @@ describe('DevSessionUI', () => {
595598
596599 await waitForInputsToBeReady ( )
597600
598- // Then - both shortcuts and URL list should be present
601+ // Then - both shortcuts with label text and URL list should be present
599602 const output = unstyled ( renderInstance . lastFrame ( ) ! )
600- expect ( output ) . toContain ( '(p)' )
601- expect ( output ) . toContain ( '(g)' )
603+ expect ( output ) . toContain ( '(p) Open app preview' )
604+ expect ( output ) . toContain ( '(c) Open Dev Console for extension previews' )
605+ expect ( output ) . toContain ( '(g) Open GraphiQL (Admin API)' )
602606 expect ( output ) . toContain ( 'Preview URL: https://shopify.com' )
607+ expect ( output ) . toContain ( 'Dev Console URL: https://mystore.myshopify.com/admin?dev-console=show' )
603608 expect ( output ) . toContain ( 'GraphiQL URL: https://graphiql.shopify.com' )
604609
605610 renderInstance . unmount ( )
@@ -631,8 +636,5 @@ describe('DevSessionUI', () => {
631636 expect ( output ) . toContain ( 'GraphiQL URL: https://graphiql.shopify.com' )
632637
633638 renderInstance . unmount ( )
634-
635- // Restore original mock for other tests
636- mocks . useStdin . mockReturnValue ( { isRawModeSupported : true } )
637639 } )
638640} )
0 commit comments