Commit 3cd7edc
committed
test(graph-engine): update flow-speed expectation after the 2x bypass
The P2 codex fix on PR #180 (commit 76424c5) bypasses the 2x
response mapping for `graph-flow-speed` so the slider's visible
endpoints are linear and the new `flowSpeed=0` stop guard fires
only at user-selected zero, not throughout the lower quarter of
the visible range. The e2e test in
`tests/e2e/graph-engine.spec.js::served Ledger handles overflows,
label overlays, and orbit pause` set the visible slider to 65
and asserted the engine received 85 (= 45 + (65-45)*2, the old 2x
response). With the bypass the engine now receives the raw value
(65), so the expected `flowSpeed` in `rangeResponse.settings` is
65 instead of 85.
The other test in `tests/e2e/ledger.spec.js` (visible value `'45'`
default, set-then-expect `'67'`) is not affected because that test
sets the slider to 67 directly and reads the resulting HTML
attribute, neither of which goes through
`graphSliderResponseValue` (the function only mutates the
`settings` object passed to the engine). The new linear flow-speed
slider still shows 67 on the dashboard when the user moves it to
67 and the engine receives 67.1 parent 76424c5 commit 3cd7edc
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1937 | 1937 | | |
1938 | 1938 | | |
1939 | 1939 | | |
1940 | | - | |
| 1940 | + | |
1941 | 1941 | | |
1942 | 1942 | | |
1943 | 1943 | | |
| |||
0 commit comments