mirror of
https://github.com/danbee/chess
synced 2025-03-04 08:39:06 +00:00
Renamed the app
This commit is contained in:
parent
14ff02edd6
commit
725a96c2aa
@ -2,7 +2,6 @@ defmodule Chess.Features.GamesTest do
|
|||||||
use ChessWeb.FeatureCase
|
use ChessWeb.FeatureCase
|
||||||
|
|
||||||
import Wallaby.Query
|
import Wallaby.Query
|
||||||
|
|
||||||
import Chess.Factory
|
import Chess.Factory
|
||||||
|
|
||||||
import Chess.AuthenticationHelpers
|
import Chess.AuthenticationHelpers
|
||||||
@ -11,7 +10,7 @@ defmodule Chess.Features.GamesTest do
|
|||||||
test "visit homepage", %{session: session} do
|
test "visit homepage", %{session: session} do
|
||||||
session
|
session
|
||||||
|> visit("/")
|
|> visit("/")
|
||||||
|> assert_has(css("header h1", text: "Chess"))
|
|> assert_has(css("header h1", text: "64squares"))
|
||||||
end
|
end
|
||||||
|
|
||||||
test "can create a new game", %{session: session} do
|
test "can create a new game", %{session: session} do
|
||||||
@ -65,7 +64,7 @@ defmodule Chess.Features.GamesTest do
|
|||||||
|> click(link("New game"))
|
|> click(link("New game"))
|
||||||
|> select("game[opponent_id]", option: "Urbosa")
|
|> select("game[opponent_id]", option: "Urbosa")
|
||||||
|> click(button("Create game"))
|
|> click(button("Create game"))
|
||||||
|> click(link("Chess"))
|
|> click(link("64squares"))
|
||||||
|
|
||||||
session
|
session
|
||||||
|> assert_has(css(".table tr", count: 1))
|
|> assert_has(css(".table tr", count: 1))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user