mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-27 18:36:08 +00:00
added unit test improvements for CustomPropertyTable and Users components (#9802)
This commit is contained in:
parent
d7cf3acf9f
commit
3dcccb1f14
@ -248,9 +248,9 @@ describe('Test User Component', () => {
|
||||
wrapper: MemoryRouter,
|
||||
}
|
||||
);
|
||||
const inheritedRoles = await findByTestId(container, 'loader');
|
||||
const loader = await findByTestId(container, 'loader');
|
||||
|
||||
expect(inheritedRoles).toBeInTheDocument();
|
||||
expect(loader).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('Following tab should show loader if the data is loading', async () => {
|
||||
@ -260,8 +260,8 @@ describe('Test User Component', () => {
|
||||
wrapper: MemoryRouter,
|
||||
}
|
||||
);
|
||||
const inheritedRoles = await findByTestId(container, 'loader');
|
||||
const loader = await findByTestId(container, 'loader');
|
||||
|
||||
expect(inheritedRoles).toBeInTheDocument();
|
||||
expect(loader).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
@ -118,5 +118,11 @@ describe('Test CustomProperty Table Component', () => {
|
||||
|
||||
// To check if loader was rendered when the loading state was true and then removed after loading is false
|
||||
await waitForElementToBeRemoved(() => screen.getByTestId('loader'));
|
||||
|
||||
const noDataPlaceHolder = await screen.findByText(
|
||||
'ErrorPlaceHolder.component'
|
||||
);
|
||||
|
||||
expect(noDataPlaceHolder).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user