mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
chore(tests): clean tests output [EE-5758] (#9215)
This commit is contained in:
parent
2953848b9a
commit
531f88b947
11 changed files with 25 additions and 11 deletions
|
@ -71,6 +71,8 @@ test('should correctly show total number of resource groups across multiple subs
|
|||
});
|
||||
|
||||
test("when only subscriptions fail to load, don't show the dashboard", async () => {
|
||||
jest.spyOn(console, 'error').mockImplementation(() => {});
|
||||
|
||||
const { queryByLabelText } = await renderComponent(
|
||||
1,
|
||||
{ 'subscription-1': 1 },
|
||||
|
@ -82,6 +84,8 @@ test("when only subscriptions fail to load, don't show the dashboard", async ()
|
|||
});
|
||||
|
||||
test('when only resource groups fail to load, still show the subscriptions', async () => {
|
||||
jest.spyOn(console, 'error').mockImplementation(() => {});
|
||||
|
||||
const { queryByLabelText, findByLabelText } = await renderComponent(
|
||||
1,
|
||||
{ 'subscription-1': 1 },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue