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(generation): await scrubber layout before profiling drags
Josh Corbett65805cb20250
diff --git a/invokeai/frontend/webv2/src/features/generation/ui/shared/ConceptRow.browser.test.tsx b/invokeai/frontend/webv2/src/features/generation/ui/shared/ConceptRow.browser.test.tsxindex 1ddcbc6195..ddccadd46b 100644--- a/invokeai/frontend/webv2/src/features/generation/ui/shared/ConceptRow.browser.test.tsx+++ b/invokeai/frontend/webv2/src/features/generation/ui/shared/ConceptRow.browser.test.tsx@@ -142,6 +142,14 @@ describe('ConceptRow', () => {it('keeps a drag local to its row and commits its final weight once', async () => {const onUpdate = vi.fn();const list = await renderList([makeLora(), makeLora({ key: 'lora-2', name: 'Chalk' })], { onUpdate });+ // Initial text measurements reveal the stops; finish those commits before measuring drag isolation.+ await expect+ .poll(() =>+ [...list.querySelectorAll('[data-scope="scrubber"]')].map(+ (scrubber) => scrubber.querySelector('[data-part="mark"]:not([data-hidden])') !== null+ )+ )+ .toEqual([true, true]);const frame = list.querySelector<HTMLElement>('[data-scope="scrubber"]')!;const rect = frame.getBoundingClientRect();const pointer = (target: EventTarget, type: string, fraction: number) =>