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(a11y): drive the keyboard journey through the Gallery center view
Josh Corbettd1c1bdf476f3
diff --git a/invokeai/frontend/webv2/scripts/run-accessibility-journeys.mjs b/invokeai/frontend/webv2/scripts/run-accessibility-journeys.mjsindex 161970b31e..6e7a46993f 100644--- a/invokeai/frontend/webv2/scripts/run-accessibility-journeys.mjs+++ b/invokeai/frontend/webv2/scripts/run-accessibility-journeys.mjs@@ -310,20 +310,21 @@ const runKeyboardJourney = async (browser) => {await previewTrigger.focus();await previewTrigger.press('Enter');+ // Compose keeps Preview and Gallery as its center views; Canvas lives under "Add to center".const previewItem = page.getByRole('menuitemradio', { exact: true, name: 'Preview' });- const canvasItem = page.getByRole('menuitemradio', { exact: true, name: 'Canvas' });+ const galleryItem = page.getByRole('menuitemradio', { exact: true, name: 'Gallery' });const centerViewMenu = page.getByRole('menu');- await canvasItem.waitFor();+ await galleryItem.waitFor();assert.equal(await previewItem.getAttribute('aria-checked'), 'true');await expectFocused(centerViewMenu, 'Opening the center view menu should focus its composite.');assert.equal(await centerViewMenu.getAttribute('aria-activedescendant'), await previewItem.getAttribute('id'));await centerViewMenu.press('ArrowDown');- assert.equal(await centerViewMenu.getAttribute('aria-activedescendant'), await canvasItem.getAttribute('id'));+ assert.equal(await centerViewMenu.getAttribute('aria-activedescendant'), await galleryItem.getAttribute('id'));await centerViewMenu.press('Enter');- const canvasTrigger = centerViewTrigger(page, 'Canvas');- await canvasTrigger.waitFor();- await expectFocused(canvasTrigger, 'Selecting a center view should restore focus to the view selector.');+ const galleryTrigger = centerViewTrigger(page, 'Gallery');+ await galleryTrigger.waitFor();+ await expectFocused(galleryTrigger, 'Selecting a center view should restore focus to the view selector.');if (pageErrors.length > 0) {throw new AggregateError(pageErrors, 'keyboard-critical-journey raised uncaught browser errors.');