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.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
test(webv2): allow lazy model picker startup
JPPhotod9b7823903e8
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.tsxindex fce39a85d5..319526eed4 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@@ -865,17 +865,23 @@ describe('WorkflowFieldInput LoRA collection', () => {</ChakraProvider>);});- await vi.waitFor(() => {- expect(modelSelectState.props).not.toBeNull();- });+ await vi.waitFor(+ () => {+ expect(modelSelectState.props).not.toBeNull();+ },+ { timeout: 5_000 }+ );};const renderLoras = async (value: unknown, onChange: (value: unknown) => void) => {await renderField(LORA_COLLECTION_TEMPLATE, value, onChange);// The picker is lazy; wait for Suspense to resolve it before asserting on the mounted widget.- await vi.waitFor(() => {- expect(modelSelectState.props).not.toBeNull();- });+ await vi.waitFor(+ () => {+ expect(modelSelectState.props).not.toBeNull();+ },+ { timeout: 5_000 }+ );};it('scopes the picker to the LoRAs the node can apply and hides the ones already added', async () => {