diff --git a/src/behaviours/cluster/namespaces/__snapshots__/edit-namespace-from-previously-opened-tab.test.tsx.snap b/src/behaviours/cluster/namespaces/__snapshots__/edit-namespace-from-previously-opened-tab.test.tsx.snap index a828a810de..25a80a2702 100644 --- a/src/behaviours/cluster/namespaces/__snapshots__/edit-namespace-from-previously-opened-tab.test.tsx.snap +++ b/src/behaviours/cluster/namespaces/__snapshots__/edit-namespace-from-previously-opened-tab.test.tsx.snap @@ -1111,9 +1111,74 @@ exports[`cluster/namespaces - edit namespaces from previously opened tab given t style="flex-basis: 300px;" >
+ class="EditResource flex column" + > +
+
+
+ + Kind: + +
+ Namespace +
+ + Name: + +
+ some-name +
+ + Namespace: + +
+ default +
+
+
+
+ + + +
+ +
diff --git a/src/behaviours/cluster/namespaces/edit-namespace-from-previously-opened-tab.test.tsx b/src/behaviours/cluster/namespaces/edit-namespace-from-previously-opened-tab.test.tsx index a7050b3a04..c5e7287988 100644 --- a/src/behaviours/cluster/namespaces/edit-namespace-from-previously-opened-tab.test.tsx +++ b/src/behaviours/cluster/namespaces/edit-namespace-from-previously-opened-tab.test.tsx @@ -3,6 +3,7 @@ * Licensed under MIT License. See LICENSE in root directory for more information. */ import type { RenderResult } from "@testing-library/react"; +import { act } from "@testing-library/react"; import type { ApplicationBuilder } from "../../../renderer/components/test-utils/get-application-builder"; import { getApplicationBuilder } from "../../../renderer/components/test-utils/get-application-builder"; import React from "react"; @@ -146,9 +147,12 @@ describe("cluster/namespaces - edit namespaces from previously opened tab", () = }, }); - await callForNamespaceMock.resolve({ - callWasSuccessful: true, - response: someNamespace, + // TODO: Figure out why act is needed here. In CI it works without it. + await act(async () => { + await callForNamespaceMock.resolve({ + callWasSuccessful: true, + response: someNamespace, + }); }); });