mirror of
https://github.com/storytold/deckcraft.git
synced 2026-10-24 10:37:03 -06:00
ui_soak_tests.rs drives the app through the egui test harness with seeded random clicks, drags, keys (plain, Ctrl, Shift), typing and scrolling over the sample deck. Every ten actions it checks that every document validates, the selection is in range, undo, journal, thumbnail and texture caches stay bounded, and no command or render panic was caught; at the end, that input really reached the editor and the mean frame stays under 250 ms. Two seeds x 150 actions run in CI; DECKCRAFT_UI_SOAK_STEPS/SEED run it long. Panics swallowed by the guards were invisible to tests: Session now counts them (panics_caught) and deckcraft_render::panics_caught() counts render panics drawn as blank. Textures::thumb_count exposes the thumbnail cache size. Co-authored-by: Cursor <cursoragent@cursor.com>