Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
TraceyOnim committed Apr 5, 2024
1 parent 2657a89 commit 0698097
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions test/quadblockquiz_web/live/login_level_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ defmodule QuadblockquizWeb.LoginLevelTest do
test "all sign up button is displayed when there is no login level selected", %{conn: conn} do
conn = get(conn, "/")
assert conn.resp_body =~ "GitHub\n</a>"
assert conn.resp_body =~ "Google"
end

describe "by_config when selected:" do
Expand Down Expand Up @@ -40,7 +39,7 @@ defmodule QuadblockquizWeb.LoginLevelTest do
conn = get(conn, "/")

assert conn.resp_body =~
"Game not available until congest starts"
"Game not available until nearer village"
end

test "if users were logged in via other oauth option other than github, they are displayed with a message to indicate game not available",
Expand All @@ -52,7 +51,7 @@ defmodule QuadblockquizWeb.LoginLevelTest do
conn = get(conn, "/")

assert conn.resp_body =~
"Game not available until contest starts"
"Game not available until nearer village"
end

test "if users were logged in anonymously, they are displayed with a message to indicate game not available",
Expand All @@ -61,7 +60,7 @@ defmodule QuadblockquizWeb.LoginLevelTest do
conn = get(conn, "/")

assert conn.resp_body =~
"Game not available until contest starts"
"Game not available until nearer village"
end
end

Expand All @@ -77,7 +76,6 @@ defmodule QuadblockquizWeb.LoginLevelTest do
test "anonymous sign up button is hidden", %{conn: conn} do
conn = get(conn, "/")
assert conn.resp_body =~ "GitHub"
assert conn.resp_body =~ "Google"
refute conn.resp_body =~ "Sign in anonymously"
end

Expand All @@ -98,7 +96,7 @@ defmodule QuadblockquizWeb.LoginLevelTest do
conn = get(conn, "/")

assert conn.resp_body =~
"Game not available until contest starts"
"Game not available until nearer village"
end
end

Expand All @@ -114,7 +112,6 @@ defmodule QuadblockquizWeb.LoginLevelTest do
test "all sign up button is shown", %{conn: conn} do
conn = get(conn, "/")
assert conn.resp_body =~ "GitHub"
assert conn.resp_body =~ "Google"
assert conn.resp_body =~ "Sign in anonymously"
end

Expand Down

0 comments on commit 0698097

Please sign in to comment.