Fix failing tests after filter refactoring
Some checks failed
continuous-integration/drone/push Build is failing
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:
parent
46fb12c3f4
commit
e3d615acb8
2 changed files with 6 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue