mirror of
https://github.com/TheRealOwenRees/chess-endgame-trainer.git
synced 2026-11-18 11:42:07 +00:00
Move colour mode and Discord controls into the mobile menu
This commit is contained in:
@@ -29,6 +29,15 @@ defmodule ChesstrainerWeb.LayoutsTest do
|
||||
assert html =~ ~p"/users/register"
|
||||
refute html =~ ~s(class="nav-user-menu")
|
||||
end
|
||||
|
||||
test "renders the utility controls in both the bar and the mobile menu" do
|
||||
html = render_component(&Layouts.navbar/1, %{current_scope: nil})
|
||||
|
||||
assert html =~ ~s(class="nav-menu-tools")
|
||||
# One copy for the bar, one for the collapsible menu; CSS shows one.
|
||||
assert length(String.split(html, ~s(role="radiogroup"))) == 3
|
||||
assert length(String.split(html, ~s(class="discord-link"))) == 3
|
||||
end
|
||||
end
|
||||
|
||||
describe "discord_link/1" do
|
||||
|
||||
Reference in New Issue
Block a user