We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d448f27 commit 83bcab1Copy full SHA for 83bcab1
redisinsight/ui/src/pages/slow-log/components/SlowLogTable/SlowLogTable.spec.tsx
@@ -31,9 +31,13 @@ describe('SlowLogTable', () => {
31
})
32
33
it('should render data', () => {
34
- expect(
35
- render(<SlowLogTable {...mockedProps} items={mockedData} />),
36
- ).toBeTruthy()
37
- expect(screen.getAllByLabelText(/^row$/)).toHaveLength(mockedData.length)
+ const { container } = render(
+ <SlowLogTable {...mockedProps} items={mockedData} />,
+ )
+
38
+ expect(container).toBeTruthy()
39
40
+ const rows = container.querySelectorAll('[data-row-type="regular"]')
41
+ expect(rows).toHaveLength(mockedData.length)
42
43
0 commit comments