commit 23f7cb448a9ef16c4f67b06802b2e31c486bd39a
parent 467661bd6ed0e8015853b97f8bbc8176b4fdceca
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Fri, 30 Oct 2026 14:22:32 -0400
umtool e2e gaps-zoom: the waveform scrolled into view before each drag
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/umtool/e2e/gaps-zoom.spec.ts b/umtool/e2e/gaps-zoom.spec.ts
@@ -66,6 +66,7 @@ const midY = async (page: Page) => {
};
/** Drag on the waveform from source second a to b. */
const dragSpan = async (page: Page, a: number, b: number) => {
+ await page.locator("[data-wave-box]").scrollIntoViewIfNeeded();
const y = await midY(page);
await page.mouse.move(await xAt(page, a), y);
await page.mouse.down();
@@ -102,6 +103,7 @@ test("the bench waveform zooms at the pointer, pans, and fits back to what it al
// + zooms in (about the playhead, else the middle): a ruler and the overview appear.
await page.locator("[data-zoom-in]").click();
+ await page.locator("[data-wave-box]").scrollIntoViewIfNeeded();
await expect(zoom).not.toHaveAttribute("data-wave-zoom", "fit");
await expect(page.locator("[data-zoom-ruler]")).toBeVisible();
await expect(page.locator("[data-zoom-overview]")).toBeVisible();