Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

fix(webv2): set fieldKind on test fixtures added since the branch point

Lincoln Stein7df060ad6f90
diff --git a/invokeai/frontend/webv2/src/features/workflow/core/graphToDocument.test.ts b/invokeai/frontend/webv2/src/features/workflow/core/graphToDocument.test.ts
index e9456ced46..c2884a31b4 100644
--- a/invokeai/frontend/webv2/src/features/workflow/core/graphToDocument.test.ts
+++ b/invokeai/frontend/webv2/src/features/workflow/core/graphToDocument.test.ts
@@ -11,6 +11,7 @@ const input = (name: string, overrides: Partial<FieldInputTemplate> = {}): Field
description: '',
exclusiveMaximum: null,
exclusiveMinimum: null,
+ fieldKind: 'input',
input: 'any',
maximum: null,
minimum: null,
diff --git a/invokeai/frontend/webv2/src/features/workflow/core/modelRequirements.test.ts b/invokeai/frontend/webv2/src/features/workflow/core/modelRequirements.test.ts
index 6096f3c960..4e881b9914 100644
--- a/invokeai/frontend/webv2/src/features/workflow/core/modelRequirements.test.ts
+++ b/invokeai/frontend/webv2/src/features/workflow/core/modelRequirements.test.ts
@@ -29,6 +29,7 @@ const fieldInput = (name: string, overrides: Partial<FieldInputTemplate> = {}):
description: '',
exclusiveMaximum: null,
exclusiveMinimum: null,
+ fieldKind: 'input',
input: 'any',
maximum: null,
minimum: null,
diff --git a/invokeai/frontend/webv2/src/features/workflow/data/libraryBrowseStore.test.ts b/invokeai/frontend/webv2/src/features/workflow/data/libraryBrowseStore.test.ts
index 5ec379464c..c869aa85e5 100644
--- a/invokeai/frontend/webv2/src/features/workflow/data/libraryBrowseStore.test.ts
+++ b/invokeai/frontend/webv2/src/features/workflow/data/libraryBrowseStore.test.ts
@@ -36,6 +36,7 @@ const MODEL_LOADER_TEMPLATE: InvocationTemplate = {
description: '',
exclusiveMaximum: null,
exclusiveMinimum: null,
+ fieldKind: 'input',
input: 'any',
maximum: null,
minimum: null,
diff --git a/invokeai/frontend/webv2/src/features/workflow/ui/graph-preview/GraphPreviewDialog.browser.test.tsx b/invokeai/frontend/webv2/src/features/workflow/ui/graph-preview/GraphPreviewDialog.browser.test.tsx
index d819f46bd4..9e5ea169a5 100644
--- a/invokeai/frontend/webv2/src/features/workflow/ui/graph-preview/GraphPreviewDialog.browser.test.tsx
+++ b/invokeai/frontend/webv2/src/features/workflow/ui/graph-preview/GraphPreviewDialog.browser.test.tsx
@@ -26,6 +26,7 @@ const { downloads, fitViewMock, TEMPLATES_SNAPSHOT, templatesSnapshotRef } = vi.
description: '',
exclusiveMaximum: null,
exclusiveMinimum: null,
+ fieldKind: 'input' as const,
input: 'any' as const,
maximum: null,
minimum: null,
diff --git a/invokeai/frontend/webv2/src/features/workflow/ui/library/libraryPreviewSource.test.ts b/invokeai/frontend/webv2/src/features/workflow/ui/library/libraryPreviewSource.test.ts
index 8c642b015d..2f18d9a1b2 100644
--- a/invokeai/frontend/webv2/src/features/workflow/ui/library/libraryPreviewSource.test.ts
+++ b/invokeai/frontend/webv2/src/features/workflow/ui/library/libraryPreviewSource.test.ts
@@ -10,6 +10,7 @@ const input = (name: string, overrides: Partial<FieldInputTemplate> = {}): Field
description: '',
exclusiveMaximum: null,
exclusiveMinimum: null,
+ fieldKind: 'input',
input: 'any',
maximum: null,
minimum: null,
diff --git a/invokeai/frontend/webv2/src/workbench/workflowRunBinding.test.ts b/invokeai/frontend/webv2/src/workbench/workflowRunBinding.test.ts
index d7877cab72..61fedcc851 100644
--- a/invokeai/frontend/webv2/src/workbench/workflowRunBinding.test.ts
+++ b/invokeai/frontend/webv2/src/workbench/workflowRunBinding.test.ts
@@ -26,6 +26,7 @@ const template = {
description: '',
exclusiveMaximum: null,
exclusiveMinimum: null,
+ fieldKind: 'input' as const,
input: 'any' as const,
maximum: null,
minimum: null,