File tree Expand file tree Collapse file tree
frontend/src/components/history Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,13 +118,13 @@ describe("HistoryPager", () => {
118118 expect ( screen . getByTestId ( "history-popover" ) ) . toBeInTheDocument ( ) ;
119119 } ) ;
120120
121- it ( "renders chevrons, the period label, and Live button in picked mode" , ( ) => {
121+ it ( "renders chevrons, the calendar period label, and Live button in picked mode" , ( ) => {
122122 renderPager ( { mode : "picked" , label : "May 12, 2026" } ) ;
123123
124124 expect ( screen . getByTestId ( "history-pager-prev" ) ) . toBeInTheDocument ( ) ;
125- expect ( screen . getByTestId ( "history-pager-trigger" ) ) . toHaveTextContent (
126- "May 12, 2026" ,
127- ) ;
125+ const trigger = screen . getByTestId ( "history-pager-trigger" ) ;
126+ expect ( trigger ) . toHaveTextContent ( "May 12, 2026" ) ;
127+ expect ( trigger . querySelector ( "svg" ) ) . toBeInTheDocument ( ) ;
128128 expect ( screen . getByTestId ( "history-pager-next" ) ) . toBeInTheDocument ( ) ;
129129 expect ( screen . getByTestId ( "history-pager-live" ) ) . toHaveTextContent ( "Live" ) ;
130130 } ) ;
You can’t perform that action at this time.
0 commit comments