1
0
Fork 0
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:
Chaim Lev-Ari 2023-08-27 13:30:45 +03:00 committed by GitHub
parent 2953848b9a
commit 531f88b947
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 25 additions and 11 deletions

View file

@ -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 },