Membership Fee 6 - UI Components & LiveViews closes #280 #304
1 changed files with 6 additions and 5 deletions
|
|
@ -240,12 +240,13 @@ defmodule MvWeb.MemberLive.ShowMembershipFeesTest do
|
|||
|> render_click()
|
||||
|
||||
# Trigger regeneration
|
||||
html =
|
||||
view
|
||||
|> element("button[phx-click='regenerate_cycles']")
|
||||
|> render_click()
|
||||
|
||||
# Wait for flash message to appear (indicates action completed)
|
||||
assert_has(view, "flash", text: "regenerated", count: :any)
|
||||
# Check that flash message appears (indicates action completed)
|
||||
assert html =~ "regenerated" || html =~ "successfully" || html =~ "erfolgreich"
|
||||
|
||||
# Check that cycles exist (should have at least some cycles for a member from 2020)
|
||||
cycles =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue