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.
This commit is contained in:
Diego Rodrigues de Sa e Souza
2026-07-01 12:58:43 -03:00
parent b5b7f09838
commit 31fd6dddbf

View File

@@ -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,
});
});