@@ -202,15 +202,15 @@ describe('GraphControls', () => {
202202 describe ( 'Searching current results' , ( ) => {
203203 it ( 'renders GraphButton with correct text' , async ( ) => {
204204 setup ( ) ;
205- const searchResultsMenu = await screen . findByText ( 'Search Current Results ' ) ;
205+ const searchResultsMenu = await screen . findByText ( 'Search' ) ;
206206
207207 expect ( searchResultsMenu ) . toBeInTheDocument ( ) ;
208208 } ) ;
209209
210210 it ( 'disables GraphButton when isCurrentSearchOpen is true' , async ( ) => {
211211 const { user } = setup ( ) ;
212212
213- const searchResultsMenu = screen . getByText ( 'Search Current Results ' ) ;
213+ const searchResultsMenu = screen . getByText ( 'Search' ) ;
214214 await user . click ( searchResultsMenu ) ;
215215
216216 expect ( searchResultsMenu ) . toBeDisabled ( ) ;
@@ -221,7 +221,7 @@ describe('GraphControls', () => {
221221
222222 expect ( screen . queryByTestId ( 'explore_graph-controls_search-current-nodes-popper' ) ) . not . toBeInTheDocument ( ) ;
223223
224- const searchResultsMenu = screen . getByText ( 'Search Current Results ' ) ;
224+ const searchResultsMenu = screen . getByText ( 'Search' ) ;
225225 await user . click ( searchResultsMenu ) ;
226226
227227 expect ( screen . getByTestId ( 'explore_graph-controls_search-current-nodes-popper' ) ) . toBeInTheDocument ( ) ;
@@ -230,11 +230,11 @@ describe('GraphControls', () => {
230230 it ( 'sets the selectedItem param and closes popper when a node is selected' , async ( ) => {
231231 const { user } = setup ( ) ;
232232
233- const searchResultsMenu = screen . getByText ( 'Search Current Results ' ) ;
233+ const searchResultsMenu = screen . getByText ( 'Search' ) ;
234234
235235 await user . click ( searchResultsMenu ) ;
236236
237- const searchInput = await screen . findByPlaceholderText ( 'Search Current Results ' ) ;
237+ const searchInput = await screen . findByPlaceholderText ( 'Search node in results ' ) ;
238238
239239 await user . type ( searchInput , currentNodes [ 1 ] . label ) ;
240240
0 commit comments