1
0
mirror of https://github.com/danbee/chess synced 2025-03-04 08:39:06 +00:00

Possible random failure fix

Did swapping these two lines fix it? I need to keep and eye on this and
investigate if it fails again.
This commit is contained in:
Daniel Barber 2018-05-08 12:59:08 +02:00
parent 743f6d3095
commit 5fce02feb5
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8

View File

@ -22,15 +22,14 @@ defmodule Chess.MovesTest do
|> select("game[opponent_id]", option: "Zelda")
|> click(button("Create game"))
session
|> click(css("#f4-r1"))
|> assert_has(square_selected("f4-r1"))
|> assert_has(square_containing("f4-r1", "white.pawn"))
session
# TODO: Random failure, Investigate!
|> click(css("#f4-r3"))
|> refute_has(square_containing("f4-r1", "white.pawn"))
|> assert_has(square_containing("f4-r3", "white.pawn"))
|> refute_has(square_containing("f4-r1", "white.pawn"))
end
test "cannot move the opponents pieces", %{session: session} do