From 5fce02feb5bb46ed8755f84ac0b507068c1f39fe Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Tue, 8 May 2018 12:59:08 +0200 Subject: [PATCH] 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. --- test/features/moves_test.exs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/features/moves_test.exs b/test/features/moves_test.exs index 56e4fae..83db8ce 100644 --- a/test/features/moves_test.exs +++ b/test/features/moves_test.exs @@ -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