@@ -104,7 +104,7 @@ it('renders detailed session information', async () => {
104104it ( 'search field works as expected for normal fields' , async ( ) => {
105105 const { getByPlaceholderText, getByText, queryByText } = render ( < RunningSessions sessions = { sessions } origin = { origin } /> )
106106 const user = userEvent . setup ( )
107- await user . type ( getByPlaceholderText ( 'search sessions... ' ) , 'browserName=edge' )
107+ await user . type ( getByPlaceholderText ( 'Search… ' ) , 'browserName=edge' )
108108 expect ( queryByText ( sessions [ 0 ] . id ) ) . not . toBeInTheDocument ( )
109109 expect ( getByText ( sessions [ 1 ] . id ) ) . toBeInTheDocument ( )
110110 expect ( queryByText ( sessions [ 2 ] . id ) ) . not . toBeInTheDocument ( )
@@ -113,7 +113,7 @@ it('search field works as expected for normal fields', async () => {
113113it ( 'search field works as expected for capabilities' , async ( ) => {
114114 const { getByPlaceholderText, getByText, queryByText } = render ( < RunningSessions sessions = { sessions } origin = { origin } /> )
115115 const user = userEvent . setup ( )
116- await user . type ( getByPlaceholderText ( 'search sessions... ' ) , 'capabilities,se:random_cap=test_func' )
116+ await user . type ( getByPlaceholderText ( 'Search… ' ) , 'capabilities,se:random_cap=test_func' )
117117 expect ( queryByText ( sessions [ 0 ] . id ) ) . not . toBeInTheDocument ( )
118118 expect ( queryByText ( sessions [ 1 ] . id ) ) . not . toBeInTheDocument ( )
119119 expect ( getByText ( sessions [ 2 ] . id ) ) . toBeInTheDocument ( )
@@ -122,7 +122,7 @@ it('search field works as expected for capabilities', async () => {
122122it ( 'search field works for multiple results' , async ( ) => {
123123 const { getByPlaceholderText, getByText, queryByText } = render ( < RunningSessions sessions = { sessions } origin = { origin } /> )
124124 const user = userEvent . setup ( )
125- await user . type ( getByPlaceholderText ( 'search sessions... ' ) , 'nodeId=h9x799f4-4397-4fbb-9344-1d5a3074695e' )
125+ await user . type ( getByPlaceholderText ( 'Search… ' ) , 'nodeId=h9x799f4-4397-4fbb-9344-1d5a3074695e' )
126126 expect ( queryByText ( sessions [ 0 ] . id ) ) . not . toBeInTheDocument ( )
127127 expect ( getByText ( sessions [ 1 ] . id ) ) . toBeInTheDocument ( )
128128 expect ( getByText ( sessions [ 2 ] . id ) ) . toBeInTheDocument ( )
@@ -131,8 +131,8 @@ it('search field works for multiple results', async () => {
131131it ( 'search field works for lazy search' , async ( ) => {
132132 const { getByPlaceholderText, getByText, queryByText } = render ( < RunningSessions sessions = { sessions } origin = { origin } /> )
133133 const user = userEvent . setup ( )
134- await user . type ( getByPlaceholderText ( 'search sessions... ' ) , 'browserName' )
135- expect ( getByPlaceholderText ( 'search sessions... ' ) ) . toHaveValue ( 'browserName' )
134+ await user . type ( getByPlaceholderText ( 'Search… ' ) , 'browserName' )
135+ expect ( getByPlaceholderText ( 'Search… ' ) ) . toHaveValue ( 'browserName' )
136136 expect ( queryByText ( sessions [ 0 ] . id ) ) . toBeInTheDocument ( )
137137 expect ( getByText ( sessions [ 1 ] . id ) ) . toBeInTheDocument ( )
138138 expect ( getByText ( sessions [ 2 ] . id ) ) . toBeInTheDocument ( )
0 commit comments