Blockchain explorer for Ethereum based network and a tool for inspecting and analyzing EVM based blockchains.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
blockscout/test/explorer_web/features/contributor_browsing_test.exs

23 lines
683 B

defmodule ExplorerWeb.UserListTest do
use ExplorerWeb.FeatureCase, async: true
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
test "views blocks on the home page", %{session: session} do
insert_list(5, :block, %{number: 4})
session
|> visit("/")
|> assert_has(css(".blocks__title", text: "Blocks"))
|> assert_has(css(".blocks__row", count: 5, text: "4"))
end
end