@@ -503,7 +503,7 @@ describe('CrudToolbar Component', function () {
503503 const toolbar = screen . getByTestId ( 'query-bar' ) . closest ( 'div' ) ;
504504 userEvent . click ( toolbar ! , { button : 2 } ) ;
505505
506- const contextMenu = screen . getByTestId ( 'lg-menu' ) ;
506+ const contextMenu = screen . getByTestId ( 'lg-context- menu' ) ;
507507 expect ( within ( contextMenu ) . getByText ( 'Expand all documents' ) ) . to . be
508508 . visible ;
509509 expect ( within ( contextMenu ) . getByText ( 'Refresh' ) ) . to . be . visible ;
@@ -516,7 +516,7 @@ describe('CrudToolbar Component', function () {
516516 const toolbar = screen . getByTestId ( 'query-bar' ) . closest ( 'div' ) ;
517517 userEvent . click ( toolbar ! , { button : 2 } ) ;
518518
519- const contextMenu = screen . getByTestId ( 'lg-menu' ) ;
519+ const contextMenu = screen . getByTestId ( 'lg-context- menu' ) ;
520520 const expandMenuItem = within ( contextMenu ) . getByText (
521521 'Expand all documents'
522522 ) ;
@@ -532,7 +532,7 @@ describe('CrudToolbar Component', function () {
532532 const toolbar = screen . getByTestId ( 'query-bar' ) . closest ( 'div' ) ;
533533 userEvent . click ( toolbar ! , { button : 2 } ) ;
534534
535- const contextMenu = screen . getByTestId ( 'lg-menu' ) ;
535+ const contextMenu = screen . getByTestId ( 'lg-context- menu' ) ;
536536 const collapseMenuItem = within ( contextMenu ) . getByText (
537537 'Collapse all documents'
538538 ) ;
@@ -548,7 +548,7 @@ describe('CrudToolbar Component', function () {
548548 const toolbar = screen . getByTestId ( 'query-bar' ) . closest ( 'div' ) ;
549549 userEvent . click ( toolbar ! , { button : 2 } ) ;
550550
551- const contextMenu = screen . getByTestId ( 'lg-menu' ) ;
551+ const contextMenu = screen . getByTestId ( 'lg-context- menu' ) ;
552552 const importMenuItem = within ( contextMenu ) . getByText (
553553 'Import JSON or CSV file'
554554 ) ;
@@ -566,7 +566,7 @@ describe('CrudToolbar Component', function () {
566566 const toolbar = screen . getByTestId ( 'query-bar' ) . closest ( 'div' ) ;
567567 userEvent . click ( toolbar ! , { button : 2 } ) ;
568568
569- const contextMenu = screen . getByTestId ( 'lg-menu' ) ;
569+ const contextMenu = screen . getByTestId ( 'lg-context- menu' ) ;
570570 const insertMenuItem =
571571 within ( contextMenu ) . getByText ( 'Insert document...' ) ;
572572 userEvent . click ( insertMenuItem ) ;
@@ -583,7 +583,7 @@ describe('CrudToolbar Component', function () {
583583 const toolbar = screen . getByTestId ( 'query-bar' ) . closest ( 'div' ) ;
584584 userEvent . click ( toolbar ! , { button : 2 } ) ;
585585
586- const contextMenu = screen . getByTestId ( 'lg-menu' ) ;
586+ const contextMenu = screen . getByTestId ( 'lg-context- menu' ) ;
587587 const exportQueryMenuItem = within ( contextMenu ) . getByText (
588588 'Export query results...'
589589 ) ;
@@ -599,7 +599,7 @@ describe('CrudToolbar Component', function () {
599599 const toolbar = screen . getByTestId ( 'query-bar' ) . closest ( 'div' ) ;
600600 userEvent . click ( toolbar ! , { button : 2 } ) ;
601601
602- const contextMenu = screen . getByTestId ( 'lg-menu' ) ;
602+ const contextMenu = screen . getByTestId ( 'lg-context- menu' ) ;
603603 const exportCollectionMenuItem = within ( contextMenu ) . getByText (
604604 'Export full collection...'
605605 ) ;
@@ -615,7 +615,7 @@ describe('CrudToolbar Component', function () {
615615 const toolbar = screen . getByTestId ( 'query-bar' ) . closest ( 'div' ) ;
616616 userEvent . click ( toolbar ! , { button : 2 } ) ;
617617
618- const contextMenu = screen . getByTestId ( 'lg-menu' ) ;
618+ const contextMenu = screen . getByTestId ( 'lg-context- menu' ) ;
619619 const updateMenuItem = within ( contextMenu ) . getByText ( 'Bulk update' ) ;
620620 userEvent . click ( updateMenuItem ) ;
621621
@@ -629,7 +629,7 @@ describe('CrudToolbar Component', function () {
629629 const toolbar = screen . getByTestId ( 'query-bar' ) . closest ( 'div' ) ;
630630 userEvent . click ( toolbar ! , { button : 2 } ) ;
631631
632- const contextMenu = screen . getByTestId ( 'lg-menu' ) ;
632+ const contextMenu = screen . getByTestId ( 'lg-context- menu' ) ;
633633 const deleteMenuItem = within ( contextMenu ) . getByText ( 'Bulk delete' ) ;
634634 userEvent . click ( deleteMenuItem ) ;
635635
@@ -643,7 +643,7 @@ describe('CrudToolbar Component', function () {
643643 const toolbar = screen . getByTestId ( 'query-bar' ) . closest ( 'div' ) ;
644644 userEvent . click ( toolbar ! , { button : 2 } ) ;
645645
646- const contextMenu = screen . getByTestId ( 'lg-menu' ) ;
646+ const contextMenu = screen . getByTestId ( 'lg-context- menu' ) ;
647647 const refreshMenuItem = within ( contextMenu ) . getByText ( 'Refresh' ) ;
648648 userEvent . click ( refreshMenuItem ) ;
649649
@@ -658,7 +658,7 @@ describe('CrudToolbar Component', function () {
658658 const toolbar = screen . getByTestId ( 'query-bar' ) . closest ( 'div' ) ;
659659 userEvent . click ( toolbar ! , { button : 2 } ) ;
660660
661- const contextMenu = screen . getByTestId ( 'lg-menu' ) ;
661+ const contextMenu = screen . getByTestId ( 'lg-context- menu' ) ;
662662 expect ( within ( contextMenu ) . queryByText ( 'Import JSON or CSV file' ) ) . to
663663 . not . exist ;
664664 expect ( within ( contextMenu ) . queryByText ( 'Export query results...' ) ) . to
@@ -673,7 +673,7 @@ describe('CrudToolbar Component', function () {
673673 const toolbar = screen . getByTestId ( 'query-bar' ) . closest ( 'div' ) ;
674674 userEvent . click ( toolbar ! , { button : 2 } ) ;
675675
676- const contextMenu = screen . getByTestId ( 'lg-menu' ) ;
676+ const contextMenu = screen . getByTestId ( 'lg-context- menu' ) ;
677677 expect ( within ( contextMenu ) . queryByText ( 'Insert document...' ) ) . to . not
678678 . exist ;
679679 } ) ;
@@ -684,7 +684,7 @@ describe('CrudToolbar Component', function () {
684684 const toolbar = screen . getByTestId ( 'query-bar' ) . closest ( 'div' ) ;
685685 userEvent . click ( toolbar ! , { button : 2 } ) ;
686686
687- const contextMenu = screen . getByTestId ( 'lg-menu' ) ;
687+ const contextMenu = screen . getByTestId ( 'lg-context- menu' ) ;
688688 expect ( within ( contextMenu ) . queryByText ( 'Bulk update' ) ) . to . not . exist ;
689689 expect ( within ( contextMenu ) . queryByText ( 'Bulk delete' ) ) . to . not . exist ;
690690 } ) ;
@@ -695,7 +695,7 @@ describe('CrudToolbar Component', function () {
695695 const toolbar = screen . getByTestId ( 'query-bar' ) . closest ( 'div' ) ;
696696 userEvent . click ( toolbar ! , { button : 2 } ) ;
697697
698- const contextMenu = screen . getByTestId ( 'lg-menu' ) ;
698+ const contextMenu = screen . getByTestId ( 'lg-context- menu' ) ;
699699 expect ( within ( contextMenu ) . queryByText ( 'Bulk update' ) ) . to . not . exist ;
700700 } ) ;
701701
@@ -705,7 +705,7 @@ describe('CrudToolbar Component', function () {
705705 const toolbar = screen . getByTestId ( 'query-bar' ) . closest ( 'div' ) ;
706706 userEvent . click ( toolbar ! , { button : 2 } ) ;
707707
708- const contextMenu = screen . getByTestId ( 'lg-menu' ) ;
708+ const contextMenu = screen . getByTestId ( 'lg-context- menu' ) ;
709709 expect ( within ( contextMenu ) . queryByText ( 'Bulk update' ) ) . to . not . exist ;
710710 } ) ;
711711
@@ -715,7 +715,7 @@ describe('CrudToolbar Component', function () {
715715 const toolbar = screen . getByTestId ( 'query-bar' ) . closest ( 'div' ) ;
716716 userEvent . click ( toolbar ! , { button : 2 } ) ;
717717
718- const contextMenu = screen . getByTestId ( 'lg-menu' ) ;
718+ const contextMenu = screen . getByTestId ( 'lg-context- menu' ) ;
719719 expect ( within ( contextMenu ) . queryByText ( 'Bulk update' ) ) . to . not . exist ;
720720 expect ( within ( contextMenu ) . queryByText ( 'Bulk delete' ) ) . to . not . exist ;
721721 } ) ;
@@ -731,7 +731,7 @@ describe('CrudToolbar Component', function () {
731731 const toolbar = screen . getByTestId ( 'query-bar' ) . closest ( 'div' ) ;
732732 userEvent . click ( toolbar ! , { button : 2 } ) ;
733733
734- const contextMenu = screen . getByTestId ( 'lg-menu' ) ;
734+ const contextMenu = screen . getByTestId ( 'lg-context- menu' ) ;
735735 expect ( within ( contextMenu ) . getByText ( 'Expand all documents' ) ) . to . be
736736 . visible ;
737737 expect ( within ( contextMenu ) . getByText ( 'Import JSON or CSV file' ) ) . to . be
0 commit comments