mirror of
https://github.com/TheRealOwenRees/chess-endgame-trainer.git
synced 2026-11-18 03:32:06 +00:00
let the difficulty picker be closed
Add an X in the corner and a Cancel button, both returning home, so a user who opens /train without wanting a session is not stuck in the modal.
This commit is contained in:
@@ -85,6 +85,8 @@ defmodule ChesstrainerWeb.EndgameLive.TrainTest do
|
||||
assert has_element?(view, "#difficulty-easy")
|
||||
assert has_element?(view, "#difficulty-medium")
|
||||
assert has_element?(view, "#difficulty-hard")
|
||||
assert has_element?(view, "#close-difficulty[href='/']")
|
||||
assert has_element?(view, "a", "Cancel")
|
||||
assert render(view) =~ "Choose a difficulty"
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user