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 e3f428e commit 981b732Copy full SHA for 981b732
1 file changed
packages/ra-ui-materialui/src/list/ListGuesser.spec.tsx
@@ -1,9 +1,18 @@
1
import * as React from 'react';
2
import expect from 'expect';
3
import { fireEvent, render, screen } from '@testing-library/react';
4
-import { ManyResources } from './ListGuesser.stories';
+import { Empty, ManyResources } from './ListGuesser.stories';
5
6
describe('<ListGuesser />', () => {
7
+ it('should render an empty state dedicated to guessers', async () => {
8
+ render(<Empty />);
9
+
10
+ await screen.findByText('No data to display');
11
+ expect(
12
+ screen.getByText('Please check your data provider')
13
+ ).toBeTruthy();
14
+ });
15
16
it('should log the guessed List views based on the fetched records', async () => {
17
const logSpy = jest.spyOn(console, 'log').mockImplementation(() => {});
18
render(<ManyResources />);
0 commit comments