@@ -104,7 +104,7 @@ it('renders detailed session information', async () => {
104
104
it ( 'search field works as expected for normal fields' , async ( ) => {
105
105
const { getByPlaceholderText, getByText, queryByText } = render ( < RunningSessions sessions = { sessions } origin = { origin } /> )
106
106
const user = userEvent . setup ( )
107
- await user . type ( getByPlaceholderText ( 'search sessions... ' ) , 'browserName=edge' )
107
+ await user . type ( getByPlaceholderText ( 'Search… ' ) , 'browserName=edge' )
108
108
expect ( queryByText ( sessions [ 0 ] . id ) ) . not . toBeInTheDocument ( )
109
109
expect ( getByText ( sessions [ 1 ] . id ) ) . toBeInTheDocument ( )
110
110
expect ( queryByText ( sessions [ 2 ] . id ) ) . not . toBeInTheDocument ( )
@@ -113,7 +113,7 @@ it('search field works as expected for normal fields', async () => {
113
113
it ( 'search field works as expected for capabilities' , async ( ) => {
114
114
const { getByPlaceholderText, getByText, queryByText } = render ( < RunningSessions sessions = { sessions } origin = { origin } /> )
115
115
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' )
117
117
expect ( queryByText ( sessions [ 0 ] . id ) ) . not . toBeInTheDocument ( )
118
118
expect ( queryByText ( sessions [ 1 ] . id ) ) . not . toBeInTheDocument ( )
119
119
expect ( getByText ( sessions [ 2 ] . id ) ) . toBeInTheDocument ( )
@@ -122,7 +122,7 @@ it('search field works as expected for capabilities', async () => {
122
122
it ( 'search field works for multiple results' , async ( ) => {
123
123
const { getByPlaceholderText, getByText, queryByText } = render ( < RunningSessions sessions = { sessions } origin = { origin } /> )
124
124
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' )
126
126
expect ( queryByText ( sessions [ 0 ] . id ) ) . not . toBeInTheDocument ( )
127
127
expect ( getByText ( sessions [ 1 ] . id ) ) . toBeInTheDocument ( )
128
128
expect ( getByText ( sessions [ 2 ] . id ) ) . toBeInTheDocument ( )
@@ -131,8 +131,8 @@ it('search field works for multiple results', async () => {
131
131
it ( 'search field works for lazy search' , async ( ) => {
132
132
const { getByPlaceholderText, getByText, queryByText } = render ( < RunningSessions sessions = { sessions } origin = { origin } /> )
133
133
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' )
136
136
expect ( queryByText ( sessions [ 0 ] . id ) ) . toBeInTheDocument ( )
137
137
expect ( getByText ( sessions [ 1 ] . id ) ) . toBeInTheDocument ( )
138
138
expect ( getByText ( sessions [ 2 ] . id ) ) . toBeInTheDocument ( )
0 commit comments