File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ it('does not render the "Prefixed with" header when autoLinkHeader is false (def
8888} )
8989
9090it ( 'filters rows based on search input' , async ( ) => {
91- userEvent . setup ( )
91+ const user = userEvent . setup ( )
9292 render ( < CSSTable cssPrefix = "pf-v6-test" debounceLength = { 0 } /> )
9393 const searchInput = screen . getByPlaceholderText ( 'Filter CSS Variables' )
9494
@@ -103,7 +103,7 @@ it('filters rows based on search input', async () => {
103103 } ) ,
104104 ) . toBeInTheDocument ( )
105105
106- await userEvent . type ( searchInput , 'test' )
106+ await user . type ( searchInput , 'test' )
107107 await waitFor ( ( ) => {
108108 // row doesn't seem to work here for whatever reason
109109 expect ( screen . getAllByText ( '.test-selector' ) ) . toHaveLength ( 2 )
@@ -112,8 +112,8 @@ it('filters rows based on search input', async () => {
112112 expect ( screen . queryByText ( 'list-property' ) ) . not . toBeInTheDocument ( )
113113 } )
114114
115- await userEvent . clear ( searchInput )
116- await userEvent . type ( searchInput , 'list' )
115+ await user . clear ( searchInput )
116+ await user . type ( searchInput , 'list' )
117117 await waitFor ( ( ) => {
118118 expect ( screen . queryByText ( '.test-selector' ) ) . not . toBeInTheDocument ( )
119119 expect ( screen . queryByText ( 'test-property' ) ) . not . toBeInTheDocument ( )
You can’t perform that action at this time.
0 commit comments