Commit 4d55487
committed
feat(e2e): 11_ui_to_train.spec.ts — deep UI→backend→train coverage
Closes the honest gap that 10_new_ui only proved DOM existence.
These 5 scenarios drive the full cycle: open canvas → mutate spec
through UI controls → click Train → backend stage_train actually
executes with the user-edited spec.
vbgui/e2e/scenarios/11_ui_to_train.spec.ts (NEW, 5 tests):
1. UI activation change (glu→swiglu via BrickContextPanel) on llama3_8b
mlp brick → Train → assert train stage reached end-to-end.
2. UI schedule change in OptimTab (linear_warmup w=4) → Train → modal
shows train row (lr_trajectory threads through stage_train).
3. UI pre_norm switch (BrickContextPanel rmsnorm→layernorm on attention)
→ Train → assert train stage runs (validates E7-18 builder threading).
4. UI Auto-group click + Apply → Train → assert train stage reached
(validates suggest_optim_groups round-trip).
5. AblationsTab Run with activation axis + 2 variants + num_steps=2
→ assert results table renders ≥2 variant rows within 60s.
Strict-mode selector fix: [data-testid^='...'] matches root + children
when their testids share the prefix; switched to exact getByTestId().
Result: 5/5 passed (6.2 s wall-clock).
Updated e2e total: 1183 + 5 deep = 1188 cells.
Honest "UI → real mini-training" cycle now verified for all 5 mutation
paths the bb0 epic added.1 parent 4051280 commit 4d55487
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
0 commit comments