diff --git a/client/src/components/Workflow/Run/WorkflowRun.test.js b/client/src/components/Workflow/Run/WorkflowRun.test.js
index 5ee08035a06..2e2bf583864 100644
--- a/client/src/components/Workflow/Run/WorkflowRun.test.js
+++ b/client/src/components/Workflow/Run/WorkflowRun.test.js
@@ -58,4 +58,23 @@ describe("WorkflowRun.vue", () => {
expect(model.hasStepVersionChanges).toBe(false);
expect(model.wpInputs.wf_param.label).toBe("wf_param");
});
+
+ it("displays submission error", async () => {
+ // waits for vue to render wrapper
+ await localVue.nextTick();
+
+ expect(wrapper.vm.loading).toBe(true);
+ expect(wrapper.vm.error).toBeNull();
+ expect(wrapper.vm.model).toBeNull();
+
+ await watchForChange({ vm: wrapper.vm, propName: "loading" });
+
+ expect(wrapper.vm.error).toBeNull();
+ expect(wrapper.vm.loading).toBe(false);
+ expect(wrapper.find("b-alert-stub").exists()).toBe(false);
+ wrapper.vm.handleSubmissionError("Some exception here");
+ await localVue.nextTick();
+ expect(wrapper.vm.submissionError).toBe("Some exception here");
+ expect(wrapper.find("b-alert-stub").attributes("variant")).toEqual("danger");
+ });
});
diff --git a/client/src/components/Workflow/Run/WorkflowRun.vue b/client/src/components/Workflow/Run/WorkflowRun.vue
index 86c3824a07c..c7d1ee31425 100644
--- a/client/src/components/Workflow/Run/WorkflowRun.vue
+++ b/client/src/components/Workflow/Run/WorkflowRun.vue
@@ -25,6 +25,9 @@
instance. To upgrade your workflow and dismiss this message simply edit the workflow and re-save
it.
+