Vocab: Sign up -> Register

This commit is contained in:
Harshad Sharma 2024-05-13 19:54:06 +05:30
parent 8b9088797a
commit ca74091335
2 changed files with 4 additions and 4 deletions

View file

@ -34,9 +34,9 @@ defmodule FreediveWeb.UserLoginLive do
<.block> <.block>
Don't have an account? Don't have an account?
<.link navigate={~p"/users/register"} class="font-semibold text-brand hover:underline"> <.link navigate={~p"/users/register"} class="font-semibold text-brand hover:underline">
Sign up Register
</.link> </.link>
for an account now. an account now.
</.block> </.block>
</:actions> </:actions>
</.simple_form> </.simple_form>

View file

@ -9,7 +9,7 @@ defmodule FreediveWeb.UserLoginLiveTest do
{:ok, _lv, html} = live(conn, ~p"/users/log_in") {:ok, _lv, html} = live(conn, ~p"/users/log_in")
assert html =~ "Log in" assert html =~ "Log in"
assert html =~ "Sign up" assert html =~ "Register"
assert html =~ "Forgot your password?" assert html =~ "Forgot your password?"
end end
@ -63,7 +63,7 @@ defmodule FreediveWeb.UserLoginLiveTest do
{:ok, _login_live, login_html} = {:ok, _login_live, login_html} =
lv lv
|> element(~s|main a:fl-contains("Sign up")|) |> element(~s|main a:fl-contains("Register")|)
|> render_click() |> render_click()
|> follow_redirect(conn, ~p"/users/register") |> follow_redirect(conn, ~p"/users/register")