Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
fix(editor): give the pane's sliders an accessible name
EtienneLescot6cb9bfef7549
diff --git a/src/components/ai-edition/RightPanes.layout.test.tsx b/src/components/ai-edition/RightPanes.layout.test.tsxindex 4056d13c1..ced0b265c 100644--- a/src/components/ai-edition/RightPanes.layout.test.tsx+++ b/src/components/ai-edition/RightPanes.layout.test.tsx@@ -118,7 +118,9 @@ describe("LayoutPane camera availability", () => {expect(screen.getByText("Shrink on Zoom")).toBeInTheDocument();expect(screen.getByText("Webcam Size")).toBeInTheDocument();expect(screen.getByRole("button", { name: "Rounded" })).toBeEnabled();- expect(screen.getByRole("slider")).toBeEnabled();+ // Named, because the pane holds four sliders now — webcam size plus the three+ // webcam-framing ones. This one is the size slider the line above just found.+ expect(screen.getByRole("slider", { name: "Webcam Size" })).toBeEnabled();// The camera-less hint must not leak into the normal case.await user.click(screen.getByRole("button", { name: "Help" }));diff --git a/src/components/ai-edition/RightPanes.tsx b/src/components/ai-edition/RightPanes.tsxindex c99bd5b4f..bbdec9cd9 100644--- a/src/components/ai-edition/RightPanes.tsx+++ b/src/components/ai-edition/RightPanes.tsx@@ -1670,6 +1670,7 @@ export function LayoutPane() {<span className={styles.val}>{Math.round(settings.webcamSizePreset)}%</span></div><input+ aria-label={ts("layout.webcamSize")}type="range"min={10}max={50}@@ -2004,7 +2005,12 @@ export function SliderCell({</span>) : null}</div>+ {/* The visible label is a <span>, not a <label htmlFor>, so without this the+ input has no accessible name at all — a screen reader announces "slider",+ and a test cannot tell two of them apart. That was survivable while a pane+ held one slider; the webcam framing row makes it four. */}<input+ aria-label={label}type="range"min={min}max={max}diff --git a/src/lib/ai-edition/store/useSequentialTimelineOps.test.ts b/src/lib/ai-edition/store/useSequentialTimelineOps.test.tsindex 556b381b4..13b097255 100644--- a/src/lib/ai-edition/store/useSequentialTimelineOps.test.ts+++ b/src/lib/ai-edition/store/useSequentialTimelineOps.test.ts@@ -171,6 +171,7 @@ describe("useSequentialTimelineOps", () => {const saveDocument = vi.fn(async (doc: AxcutDocument) => {useProjectStore.getState().setDocument(doc);+ return true;});const { result } = renderHook(() =>@@ -203,6 +204,7 @@ describe("useSequentialTimelineOps", () => {const saveDocument = vi.fn(async (doc: AxcutDocument) => {useProjectStore.getState().setDocument(doc);+ return true;});const { result } = renderHook(() =>