The logo is now a link to the homepage.

pull/2/head
CJ Bryan and Matt Olenick 7 years ago committed by Doc Ritezel
parent 6a9c70e09a
commit ed6791d2e0
  1. 6
      lib/explorer_web/templates/layout/app.html.eex
  2. 6
      test/explorer_web/features/contributor_browsing_test.exs

@ -14,7 +14,11 @@
<body>
<div class="container">
<header class="header">
<img class="header__logo" src="<%= static_path(@conn, "/images/logo.png") %>">
<%=
static_path(@conn, "/images/logo.png")
|> img_tag(class: "header__logo")
|> link(to: ExplorerWeb.Endpoint.url())
%>
<div class="header__title"><%= gettext "POA Network Explorer" %></div>
</header>

@ -1,11 +1,15 @@
defmodule ExplorerWeb.UserListTest do
use ExplorerWeb.FeatureCase, async: true
import Wallaby.Query, only: [css: 2]
import Wallaby.Query, only: [css: 1, css: 2]
@logo css("img.header__logo")
test "browses the home page", %{session: session} do
session
|> visit("/")
|> assert_has(css(".header__title", text: "POA Network Explorer"))
|> click(@logo)
|> assert_has(css("main", text: "Welcome to our blockchain explorer."))
end
end

Loading…
Cancel
Save