peregrine/app/pages
pyr0ball 0758b70306 feat(e2e): add smoke + interaction tests; fix two demo mode errors
- Add tests/e2e/test_smoke.py: page-load error check for all pages
- Add tests/e2e/test_interactions.py: click every interactable, diff
  errors, XFAIL expected demo failures, flag regressions as XPASS
- Fix conftest get_page_errors() to use text_content() instead of
  inner_text() so errors inside collapsed expanders are captured with
  their actual message text (inner_text respects CSS display:none)
- Fix tests/e2e/modes/demo.py base_url to include /peregrine path prefix
  (STREAMLIT_SERVER_BASE_URL_PATH=peregrine set in demo container)

App fixes surfaced by the harness:
- task_runner.py: add DEMO_MODE guard for discovery task — previously
  crashed with FileNotFoundError on search_profiles.yaml before any
  demo guard could fire; now returns friendly error immediately
- 6_Interview_Prep.py: stop auto-triggering LLM session on page load
  in demo mode; show "AI features disabled" info instead, preventing
  a silent st.error() inside the collapsed Practice Q&A expander

Both smoke and interaction tests now pass clean against demo mode.
2026-03-17 07:00:54 -07:00
..
0_Setup.py fix: keyword suggestions visibility, wizard identity autofill, dynamic sync label 2026-03-16 21:47:37 -07:00
1_Job_Review.py chore: seed Peregrine from personal job-seeker (pre-generalization) 2026-02-24 18:25:39 -08:00
2_Settings.py fix: keyword suggestions visibility, wizard identity autofill, dynamic sync label 2026-03-16 21:47:37 -07:00
4_Apply.py fix(cloud): use per-user config dir for wizard gate; redirect on invalid session 2026-03-13 11:24:42 -07:00
5_Interviews.py feat: push interview events to connected calendar integrations (#19) 2026-03-16 21:31:22 -07:00
6_Interview_Prep.py feat(e2e): add smoke + interaction tests; fix two demo mode errors 2026-03-17 07:00:54 -07:00
7_Survey.py chore: seed Peregrine from personal job-seeker (pre-generalization) 2026-02-24 18:25:39 -08:00