Skip to content

Commit d2cafc6

Browse files
Update src/components/__tests__/CSSTable.test.tsx
Co-authored-by: Austin Sullivan <[email protected]>
1 parent 979e046 commit d2cafc6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/__tests__/CSSTable.test.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ it('does not render the "Prefixed with" header when autoLinkHeader is false (def
8888
})
8989

9090
it('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()

0 commit comments

Comments
 (0)