@@ -62,18 +62,27 @@ test("pins a canonical thread, switches it from the collapsible rail, and unpins
6262 const railColumnElement = document . querySelector < HTMLElement > (
6363 '[data-testid="thread-rail-column"]' ,
6464 ) ;
65+ const appSidebarLayer = document . querySelector < HTMLElement > (
66+ '[data-testid="app-sidebar-layer"]' ,
67+ ) ;
6568 const contentElement = document . querySelector < HTMLElement > (
6669 "[data-buzz-content-surface]:not([data-buzz-content-unframed])" ,
6770 ) ;
68- if ( ! railElement || ! railColumnElement || ! contentElement ) {
71+ if (
72+ ! railElement ||
73+ ! railColumnElement ||
74+ ! appSidebarLayer ||
75+ ! contentElement
76+ ) {
6977 throw new Error (
70- "Thread Rail, rail column, or framed content surface unavailable" ,
78+ "Thread Rail, rail column, app layer, or framed content surface unavailable" ,
7179 ) ;
7280 }
7381 const railRect = railElement . getBoundingClientRect ( ) ;
7482 const contentRect = contentElement . getBoundingClientRect ( ) ;
7583 const railStyle = getComputedStyle ( railElement ) ;
7684 const railColumnStyle = getComputedStyle ( railColumnElement ) ;
85+ const appSidebarLayerStyle = getComputedStyle ( appSidebarLayer ) ;
7786 const contentStyle = getComputedStyle ( contentElement ) ;
7887 return {
7988 railTop : Math . round ( railRect . top ) ,
@@ -83,8 +92,11 @@ test("pins a canonical thread, switches it from the collapsible rail, and unpins
8392 railRadius : railStyle . borderTopLeftRadius ,
8493 contentRadius : contentStyle . borderTopLeftRadius ,
8594 railBackground : railStyle . backgroundColor ,
95+ railColumnBackground : railColumnStyle . backgroundColor ,
8696 railColumnBackgroundImage : railColumnStyle . backgroundImage ,
8797 railColumnRadius : railColumnStyle . borderTopLeftRadius ,
98+ appSidebarLayerBackground : appSidebarLayerStyle . backgroundColor ,
99+ appSidebarLayerBackgroundImage : appSidebarLayerStyle . backgroundImage ,
88100 contentBackground : contentStyle . backgroundColor ,
89101 railClipPath : railStyle . clipPath ,
90102 } ;
@@ -96,7 +108,10 @@ test("pins a canonical thread, switches it from the collapsible rail, and unpins
96108 } ) ;
97109 expect ( paneGeometry . railBottom ) . toBe ( paneGeometry . contentBottom ) ;
98110 expect ( paneGeometry . railColumnRadius ) . toBe ( "0px" ) ;
99- expect ( paneGeometry . railColumnBackgroundImage ) . toContain ( "linear-gradient" ) ;
111+ expect ( paneGeometry . railColumnBackground ) . toBe ( "rgba(0, 0, 0, 0)" ) ;
112+ expect ( paneGeometry . railColumnBackgroundImage ) . toBe ( "none" ) ;
113+ expect ( paneGeometry . appSidebarLayerBackground ) . toBe ( "rgba(0, 0, 0, 0)" ) ;
114+ expect ( paneGeometry . appSidebarLayerBackgroundImage ) . toBe ( "none" ) ;
100115 expect ( paneGeometry . railClipPath ) . toBe ( "none" ) ;
101116 const entry = rail . getByTestId ( `thread-rail-entry-${ root . id } ` ) ;
102117 await expect ( entry ) . toHaveAttribute ( "aria-current" , "page" ) ;
0 commit comments