Repository navigation
Commit 35751a0
committed
e2e: 'released' means no LIVE claim, not an absent state file
just e2e on db0eefe: 9 failed / 586 passed / 20 skipped of 615. All nine
polled or asserted 'not state.study_session_id' after a web ending. Since
10a38eb (plan 5, larger #1) a web release keeps the saved mode=ended state
file so the dashboard's summary view can render from it -- exactly the
assertion lane R predicted would be 'wrong by design' in its log. Every
consumer already reads an ended id as no session: _render.py:29,
session_state.has_active_session / _claim_exists, components.js:1090,3568,
session-timer.js:279. The nine sites now use the same predicate (a shared
_live() helper in the two Python files; the JS predicates inline), and the
abandon-mid-flight test pins the kept record truthfully (mode=ended,
purpose=planning) while the page-level assertion keeps guarding that no
LIVE planning label survives. The nine pass against the real server
(9 passed in 47 s); the predicate still rejects an id whose mode is not
ended, so a session that genuinely failed to release still fails them.1 parent db0eefe commit 35751a0
4 files changed
Lines changed: 42 additions & 11 deletions
File tree
- packages/studyloop/tests
- e2e
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
710 | 710 | | |
711 | 711 | | |
712 | 712 | | |
713 | | - | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
714 | 717 | | |
715 | 718 | | |
716 | | - | |
| 719 | + | |
717 | 720 | | |
718 | 721 | | |
719 | 722 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
294 | | - | |
| 294 | + | |
| 295 | + | |
295 | 296 | | |
296 | 297 | | |
297 | 298 | | |
| |||
452 | 453 | | |
453 | 454 | | |
454 | 455 | | |
455 | | - | |
| 456 | + | |
| 457 | + | |
456 | 458 | | |
457 | 459 | | |
458 | 460 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
76 | 87 | | |
77 | 88 | | |
78 | 89 | | |
| |||
267 | 278 | | |
268 | 279 | | |
269 | 280 | | |
270 | | - | |
| 281 | + | |
271 | 282 | | |
272 | 283 | | |
273 | 284 | | |
| |||
294 | 305 | | |
295 | 306 | | |
296 | 307 | | |
297 | | - | |
| 308 | + | |
298 | 309 | | |
299 | 310 | | |
300 | 311 | | |
| |||
356 | 367 | | |
357 | 368 | | |
358 | 369 | | |
359 | | - | |
| 370 | + | |
360 | 371 | | |
361 | 372 | | |
362 | 373 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
279 | 290 | | |
280 | 291 | | |
281 | 292 | | |
| |||
436 | 447 | | |
437 | 448 | | |
438 | 449 | | |
439 | | - | |
| 450 | + | |
440 | 451 | | |
441 | 452 | | |
442 | 453 | | |
| |||
602 | 613 | | |
603 | 614 | | |
604 | 615 | | |
605 | | - | |
606 | | - | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
607 | 622 | | |
608 | 623 | | |
609 | 624 | | |
| |||
721 | 736 | | |
722 | 737 | | |
723 | 738 | | |
724 | | - | |
| 739 | + | |
725 | 740 | | |
726 | 741 | | |
727 | 742 | | |
| |||
0 commit comments