From 31fd6dddbf7df0b28241366adac07014f9eaca38 Mon Sep 17 00:00:00 2001 From: Diego Rodrigues de Sa e Souza Date: Wed, 1 Jul 2026 12:58:43 -0300 Subject: [PATCH] test(e2e): anchor compression-studio smoke on play-input, not async play-lane The T03 smoke asserted `play-lane` visible on mount, but those per-lane buttons only render after a preview-compression run populates `batch.lanes` (usePreviewCompression keeps batch null until run(); there is no mount auto-run). The smoke intentionally does not drive a compression cascade, so `play-lane` can never appear -> the E2E added in #5727 failed all 3 retries (E2E Tests 4/9). Anchor on the always-present `play-input` panel, which proves the studio body mounted without needing async lane data. --- tests/e2e/compression-studio.spec.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/e2e/compression-studio.spec.ts b/tests/e2e/compression-studio.spec.ts index 08c298868a..5e78cc2894 100644 --- a/tests/e2e/compression-studio.spec.ts +++ b/tests/e2e/compression-studio.spec.ts @@ -29,8 +29,13 @@ test.describe("Compression Studio (Tela A)", () => { const playTab = page.locator('[data-testid="tab-play"]'); await expect(playTab).toBeVisible({ timeout: 30_000 }); - // Play view is the default tab → its lane proves the studio body mounted. - await expect(page.locator('[data-testid="play-lane"]').first()).toBeVisible({ + // Play view is the default tab → its playground input proves the studio body mounted. + // NOTE: the per-lane `play-lane` buttons only render AFTER a preview-compression run + // populates `batch.lanes` (usePreviewCompression keeps `batch` null until `run()` is + // called — there is no mount auto-run). This smoke test intentionally does not drive a + // compression cascade (see the "Out of scope" note above), so asserting `play-lane` + // here can never become visible. Anchor on the always-present input panel instead. + await expect(page.locator('[data-testid="play-input"]')).toBeVisible({ timeout: 30_000, }); });