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.

test(webv2): wait for saved workflow picker readiness

JPPhotoe6a55e9960f8
diff --git a/invokeai/frontend/webv2/src/features/workflow/ui/fields/WorkflowFieldInput.browser.test.tsx b/invokeai/frontend/webv2/src/features/workflow/ui/fields/WorkflowFieldInput.browser.test.tsx
index e487356669..d4aaee25e0 100644
--- a/invokeai/frontend/webv2/src/features/workflow/ui/fields/WorkflowFieldInput.browser.test.tsx
+++ b/invokeai/frontend/webv2/src/features/workflow/ui/fields/WorkflowFieldInput.browser.test.tsx
@@ -377,7 +377,9 @@ describe('WorkflowFieldInput saved workflows', () => {
await renderField(SAVED_WORKFLOW_TEMPLATE, '', onChange);
await vi.waitFor(() => expect(workflowApiMock.apiFetchJson).toHaveBeenCalledTimes(2));
await vi.waitFor(() =>
- expect(host.querySelector<HTMLInputElement>('input[role="combobox"]')?.placeholder).not.toBe('common.loading')
+ expect(host.querySelector<HTMLInputElement>('input[role="combobox"]')?.placeholder).toBe(
+ 'nodes.savedWorkflowSearch'
+ )
);
const input = host.querySelector<HTMLInputElement>('input[role="combobox"]');