From 8f6c95536f8e484f85a736436f93d9cc4980a27a Mon Sep 17 00:00:00 2001 From: Ahmed Awan Date: Tue, 5 Nov 2024 12:07:39 -0600 Subject: [PATCH] fix failing `WorkflowInvocationHeader` jest - Adjust props - Remove the return to invocation list jest, we will be removing that button soon --- .../WorkflowInvocationHeader.test.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/client/src/components/WorkflowInvocationState/WorkflowInvocationHeader.test.ts b/client/src/components/WorkflowInvocationState/WorkflowInvocationHeader.test.ts index 6964145c03b6..eaabaad4015d 100644 --- a/client/src/components/WorkflowInvocationState/WorkflowInvocationHeader.test.ts +++ b/client/src/components/WorkflowInvocationState/WorkflowInvocationHeader.test.ts @@ -75,7 +75,12 @@ async function mountWorkflowInvocationHeader(ownsWorkflow = true, hasReturnBtn = ...sampleInvocation, workflow_id: !unimportableWorkflow ? sampleInvocation.workflow_id : UNIMPORTABLE_WORKFLOW_INSTANCE_ID, }, + invocationState: "scheduled", + isFullPage: true, + jobStatesSummary: {}, fromPanel: !hasReturnBtn, + invocationSchedulingTerminal: true, + invocationAndJobTerminal: true, }, localVue, pinia: createTestingPinia(), @@ -102,12 +107,6 @@ describe("WorkflowInvocationHeader renders", () => { expect(runButton.attributes("title")).toContain(SAMPLE_WORKFLOW.name); }); - it("return to invocations list button if not from panel", async () => { - const { wrapper } = await mountWorkflowInvocationHeader(false, true); - const returnButton = wrapper.find(SELECTORS.RETURN_TO_INVOCATIONS_LIST_BUTTON); - expect(returnButton.text()).toBe("Invocations List"); - }); - it("edit button if user owns the workflow", async () => { const { wrapper } = await mountWorkflowInvocationHeader(); const actionsGroup = wrapper.find(SELECTORS.ACTIONS_BUTTON_GROUP);