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): drop duplicate boot widget test
joshistoast02322e26039e
diff --git a/invokeai/frontend/webv2/src/workbench/bootWidgetPreload.test.ts b/invokeai/frontend/webv2/src/workbench/bootWidgetPreload.test.tsindex de0d76b4f7..4b8db0c2a0 100644--- a/invokeai/frontend/webv2/src/workbench/bootWidgetPreload.test.ts+++ b/invokeai/frontend/webv2/src/workbench/bootWidgetPreload.test.ts@@ -1,8 +1,6 @@import { describe, expect, it, vi } from 'vitest';import { readBootWidgetHint, writeBootWidgetHint } from './bootWidgetPreload';-import { defaultLayoutPreset } from './layoutPresets';-import { getLayoutWidgetTypeIds } from './layoutWidgetSet';const storage = new Map<string, string>();@@ -18,27 +16,6 @@ vi.stubGlobal('window', {const HINT_KEY = 'invokeai:v7:webv2:boot-widgets';describe('boot widget preload', () => {- it('derives the default layout boot set: active instances plus every bottom item', () => {- const typeIds = getLayoutWidgetTypeIds(defaultLayoutPreset.snapshot);-- for (const region of Object.values(defaultLayoutPreset.snapshot.widgetRegions)) {- const activeTypeId = defaultLayoutPreset.snapshot.widgetInstances[region.activeInstanceId]?.typeId;-- if (activeTypeId) {- expect(typeIds).toContain(activeTypeId);- }- }-- // The status bar mounts all bottom items, not just the active one.- for (const instanceId of defaultLayoutPreset.snapshot.widgetRegions.bottom.instanceIds) {- const typeId = defaultLayoutPreset.snapshot.widgetInstances[instanceId]?.typeId;-- if (typeId) {- expect(typeIds).toContain(typeId);- }- }- });-it('round-trips the hint through storage', () => {writeBootWidgetHint(['canvas', 'gallery', 'server-status']);