2.5 KiB
2.5 KiB
id, title, status, assignee, created_date, updated_date, labels, dependencies, modified_files, parent_task_id, priority, ordinal
| id | title | status | assignee | created_date | updated_date | labels | dependencies | modified_files | parent_task_id | priority | ordinal | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ML-182.3 | Wave 3: Convert live/2 → visit/2 for CRUD LiveViews (6 files) | In Progress | 2026-05-14 22:14 | 2026-05-15 06:01 |
|
|
ML-182 | medium | 13000 |
Description
Convert live/2 → visit/2 for standard CRUD LiveViews. Files:
- maintenance_live/index_test.exs ✅ Done (14 tests pass)
- online_store_template_live/index_test.exs ✅ Done (7 tests pass)
- record_set_live/index_test.exs ✅ Done (7 tests pass)
- record_set_live/show_test.exs ✅ Done (15 tests pass)
- scrobble_rules_live/index_test.exs ✅ Done (10 tests pass) — removed
import Phoenix.LiveViewTest, added explicitonly:forrender_change/1andform/3. Fluxon<.select>component requiresunwrapwithform/3+render_change/1for type changes — standardPhoenixTest.select/3doesn't work with custom selects. Dynamic label ("Match Value"/"Album Title"/"Artist Name") handled viaset_rule_typehelper. Edit validation test usesunwrapwithrender_changeto clear existing data before checking errors. Path assertions on patch links omit query params (not captured by PhoenixTest). Buttons: "Add" (link), "Save Rule", "Apply", "Apply rule", "Delete", "Disable rule"/"Enable rule". - scrobbled_tracks_live/rule_picker_test.exs ⏸️ Blocked: clicks
<span>badges withphx-click(Fluxon). PhoenixTest only supports<a>and<button>.
Key learnings for remaining files:
- Fluxon custom
<.select>components are NOT native<select>elements — useunwrapwithform/3+render_change/1instead ofPhoenixTest.select/3 - For edit-form validation tests where existing data would pass validation,
unwrapwithrender_changeclears fields first assert_pathon patch links doesn't capture query params — use path-only assertions<li phx-click>needsunwrapwithelement/2+render_click/1since PhoenixTest only supports<a>and<button>natively