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
fix(canvas): color picker mount test
joshistoast4867f508b8d7
diff --git a/invokeai/frontend/webv2/src/workbench/components/ui/ColorPicker.test.tsx b/invokeai/frontend/webv2/src/workbench/components/ui/ColorPicker.test.tsxnew file mode 100644index 0000000000..4b12c8b3f6--- /dev/null+++ b/invokeai/frontend/webv2/src/workbench/components/ui/ColorPicker.test.tsx@@ -0,0 +1,18 @@+import { ChakraProvider } from '@chakra-ui/react';+import { system } from '@theme/system';+import { renderToStaticMarkup } from 'react-dom/server';+import { describe, expect, it, vi } from 'vitest';++import { ColorPicker } from './ColorPicker';++describe('ColorPicker', () => {+ it('does not mount its overlay until it is opened', () => {+ const markup = renderToStaticMarkup(+ <ChakraProvider value={system}>+ <ColorPicker aria-label="Fill color" value="#ff0000" onValueChange={vi.fn()} />+ </ChakraProvider>+ );++ expect(markup).not.toContain('data-part="content"');+ });+});