Add multiple models to MethodModeling story
This commit is contained in:
@@ -4,6 +4,7 @@ import { Meta, StoryFn } from "@storybook/react";
|
|||||||
|
|
||||||
import { MethodModeling as MethodModelingComponent } from "../../view/method-modeling/MethodModeling";
|
import { MethodModeling as MethodModelingComponent } from "../../view/method-modeling/MethodModeling";
|
||||||
import { createMethod } from "../../../test/factories/model-editor/method-factories";
|
import { createMethod } from "../../../test/factories/model-editor/method-factories";
|
||||||
|
import { createModeledMethod } from "../../../test/factories/model-editor/modeled-method-factories";
|
||||||
export default {
|
export default {
|
||||||
title: "Method Modeling/Method Modeling",
|
title: "Method Modeling/Method Modeling",
|
||||||
component: MethodModelingComponent,
|
component: MethodModelingComponent,
|
||||||
@@ -35,3 +36,20 @@ MethodSaved.args = {
|
|||||||
modeledMethods: [],
|
modeledMethods: [],
|
||||||
modelingStatus: "saved",
|
modelingStatus: "saved",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const MultipleModelings = Template.bind({});
|
||||||
|
MultipleModelings.args = {
|
||||||
|
method,
|
||||||
|
modeledMethods: [
|
||||||
|
createModeledMethod(method),
|
||||||
|
createModeledMethod({
|
||||||
|
...method,
|
||||||
|
type: "source",
|
||||||
|
input: "",
|
||||||
|
output: "ReturnValue",
|
||||||
|
kind: "remote",
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
showMultipleModels: true,
|
||||||
|
modelingStatus: "saved",
|
||||||
|
};
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ export function createModeledMethod(
|
|||||||
type: "sink",
|
type: "sink",
|
||||||
input: "Argument[0]",
|
input: "Argument[0]",
|
||||||
output: "",
|
output: "",
|
||||||
kind: "jndi-injection",
|
kind: "path-injection",
|
||||||
provenance: "manual",
|
provenance: "manual",
|
||||||
...data,
|
...data,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user