Skip to content

Commit 553435d

Browse files
Add stories for validation errors in MethodRow
1 parent 0af77d0 commit 553435d

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

extensions/ql-vscode/src/stories/model-editor/MethodRow.stories.tsx

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,3 +153,28 @@ MultipleModelings.args = {
153153
methodCanBeModeled: true,
154154
viewState,
155155
};
156+
157+
export const ValidationError = Template.bind({});
158+
ValidationError.args = {
159+
method,
160+
modeledMethods: [
161+
{ ...modeledMethod, type: "source" },
162+
{ ...modeledMethod, type: "source" },
163+
],
164+
methodCanBeModeled: true,
165+
viewState,
166+
};
167+
168+
export const MultipleValidationErrors = Template.bind({});
169+
MultipleValidationErrors.args = {
170+
method,
171+
modeledMethods: [
172+
{ ...modeledMethod, type: "source" },
173+
{ ...modeledMethod, type: "source" },
174+
{ ...modeledMethod, type: "sink" },
175+
{ ...modeledMethod, type: "sink" },
176+
{ ...modeledMethod, type: "neutral", kind: "source" },
177+
],
178+
methodCanBeModeled: true,
179+
viewState,
180+
};

0 commit comments

Comments
 (0)