From e0d5912c0a6e203015c56607223ac5aaeb34f5e5 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Tue, 17 Nov 2026 05:35:11 +0100 Subject: [PATCH] :paperclip: Label the plugin's random programs fill and opacity smoke coverage The plugin suite's random case said every settled step retains authored values, but its programs check only fills and opacity against their own model: resizes and turns carry no geometry assertions, and no step undoes, swaps, switches variants, edits text or checks touched groups. The case is now `RandomFillOpacitySmoke` and says so, pointing to the generated programs of common and their frontend and WASM replays for the rest. Harness only; the benchmark is not run. AI-assisted-by: claude-opus-5-5 --- .../composable-tests/cases/caseRandomCompositions.ts | 10 +++++++--- .../composable-tests/operations/OpRandomSequence.ts | 7 +++++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/plugins/apps/composable-test-suite/src/composable-tests/cases/caseRandomCompositions.ts b/plugins/apps/composable-test-suite/src/composable-tests/cases/caseRandomCompositions.ts index 391707041a..7b5b717be4 100644 --- a/plugins/apps/composable-test-suite/src/composable-tests/cases/caseRandomCompositions.ts +++ b/plugins/apps/composable-test-suite/src/composable-tests/cases/caseRandomCompositions.ts @@ -4,9 +4,13 @@ import { OpRandomSequence } from "../operations/OpRandomSequence.ts"; export function createTestCaseRandomCompositions(): TestCase { return new TestCase( - "RandomCompositions", - "Two nested components and their copies receive seeded edits, resets, duplication, detachment " + - "and transforms. Every settled step must retain authored values and follow untouched main values.", + "RandomFillOpacitySmoke", + "Smoke coverage of fills and opacity through the Plugin API: two nested components and their copies " + + "receive seeded fill and opacity edits, resets, duplication, detachment, resizes and turns. Each " + + "settled step checks only fills and opacity against an independent override model; resizes and " + + "turns carry no geometry assertions, and no step undoes, swaps, switches variants, edits text or " + + "checks touched groups. The generated programs of common and their frontend and WASM replays " + + "cover those.", new OpOneOf(new OpRandomSequence(712), new OpRandomSequence(20261022), new OpRandomSequence(1792691)) ); } diff --git a/plugins/apps/composable-test-suite/src/composable-tests/operations/OpRandomSequence.ts b/plugins/apps/composable-test-suite/src/composable-tests/operations/OpRandomSequence.ts index 1b651b4e3d..2e9ad8aa43 100644 --- a/plugins/apps/composable-test-suite/src/composable-tests/operations/OpRandomSequence.ts +++ b/plugins/apps/composable-test-suite/src/composable-tests/operations/OpRandomSequence.ts @@ -21,7 +21,10 @@ function subtree(shape: Shape): Shape[] { return [shape, ...children(shape).flatMap(subtree)]; } -/** Random edits through the real Plugin API, with an independent value model. */ +/** + * Smoke coverage of fills and opacity: seeded edits through the real Plugin + * API, checked against an independent model of those two fields only. + */ export class OpRandomSequence extends Operation { constructor( readonly seed: number, @@ -173,6 +176,6 @@ export class OpRandomSequence extends Operation { } toString(): string { - return `random component program, seed ${this.seed}`; + return `random fill/opacity smoke program, seed ${this.seed}`; } }