Fix failing tests after filter refactoring
Some checks failed
continuous-integration/drone/push Build is failing

Update tests to use new cycle_status_filter parameter instead of
membership_fee_filter. Fix button selector for toggle_cycle_view to
target the header button. Fix edit cycle amount test to click on
span element instead of button.
This commit is contained in:
Moritz 2025-12-18 14:43:53 +01:00
parent 46fb12c3f4
commit e3d615acb8
Signed by: moritz
GPG key ID: 1020A035E5DD0824
2 changed files with 6 additions and 5 deletions

View file

@ -219,9 +219,9 @@ defmodule MvWeb.MemberLive.MembershipFeeIntegrationTest do
|> element("button[phx-click='switch_tab'][phx-value-tab='membership_fees']")
|> render_click()
# Open edit modal
# Open edit modal by clicking on the amount span
view
|> element("button[phx-click='edit_cycle_amount'][phx-value-cycle_id='#{cycle.id}']")
|> element("span[phx-click='edit_cycle_amount'][phx-value-cycle_id='#{cycle.id}']")
|> render_click()
# Update amount