@@ -1667,6 +1667,21 @@ describe("Toolbar - settings panel", () => {
16671667 expect ( screen . getByTestId ( "toolbar-settings" ) ) . toBeInTheDocument ( ) ;
16681668 } ) ;
16691669
1670+ it ( "does not pin the utility menu open just because locked mode is enabled" , ( ) => {
1671+ render (
1672+ < Toolbar
1673+ config = { makeConfig ( ) }
1674+ allColumns = { ALL_COLUMNS }
1675+ numericColumns = { NUMERIC_COLUMNS }
1676+ onConfigChange = { vi . fn ( ) }
1677+ locked = { true }
1678+ /> ,
1679+ ) ;
1680+ expect (
1681+ screen . getByRole ( "toolbar" , { name : "Table actions" } ) . className ,
1682+ ) . not . toContain ( "utilGroupPinned" ) ;
1683+ } ) ;
1684+
16701685 it ( "locked mode settings panel shows status rows" , ( ) => {
16711686 render (
16721687 < Toolbar
@@ -2485,6 +2500,22 @@ describe("Toolbar – DnD rendering", () => {
24852500 screen . getAllByText ( "Apply fields in settings menu" ) . length ,
24862501 ) . toBeGreaterThanOrEqual ( 1 ) ;
24872502 } ) ;
2503+
2504+ it ( "hides the empty drop zone placeholder in locked mode" , ( ) => {
2505+ render (
2506+ < Toolbar
2507+ config = { makeConfig ( { rows : [ ] , columns : [ ] , values : [ ] } ) }
2508+ allColumns = { ALL_COLUMNS }
2509+ numericColumns = { NUMERIC_COLUMNS }
2510+ onConfigChange = { vi . fn ( ) }
2511+ locked = { true }
2512+ /> ,
2513+ ) ;
2514+ expect (
2515+ screen . queryByText ( "Apply fields in settings menu" ) ,
2516+ ) . not . toBeInTheDocument ( ) ;
2517+ expect ( screen . queryByText ( "Drag fields here" ) ) . not . toBeInTheDocument ( ) ;
2518+ } ) ;
24882519} ) ;
24892520
24902521// ---------------------------------------------------------------------------
0 commit comments