Skip to content

Commit

Permalink
remove remnants from test that was never committed
Browse files Browse the repository at this point in the history
  • Loading branch information
SteffenDE committed May 29, 2024
1 parent bb914ce commit 0941d2c
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions test/support/e2e/form_feedback.ex
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,8 @@ defmodule Phoenix.LiveViewTest.E2E.FormFeedbackLive do
end

@impl Phoenix.LiveView
def mount(params, _session, socket) do
{:ok,
assign(socket,
count: 0,
submit_count: 0,
validate_count: 0,
feedback: true,
counters: !params["no_counter"]
)}
def mount(_params, _session, socket) do
{:ok, assign(socket, count: 0, submit_count: 0, validate_count: 0, feedback: true)}
end

@impl Phoenix.LiveView
Expand Down Expand Up @@ -118,11 +111,9 @@ defmodule Phoenix.LiveViewTest.E2E.FormFeedbackLive do
display: none;
}
</style>
<%= if @counters do %>
<p>Button Count: <%= @count %></p>
<p>Validate Count: <%= @validate_count %></p>
<p>Submit Count: <%= @submit_count %></p>
<% end %>
<p>Button Count: <%= @count %></p>
<p>Validate Count: <%= @validate_count %></p>
<p>Submit Count: <%= @submit_count %></p>
<button phx-click="inc" class="bg-blue-500 text-white p-4">+</button>
<button phx-click="dec" class="bg-blue-500 text-white p-4">-</button>
Expand Down

0 comments on commit 0941d2c

Please sign in to comment.