mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-06 15:22:12 +03:00
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:
@@ -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,
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user