|
|
@ -20,9 +20,13 @@ defmodule BlockScoutWeb.FeatureCase do |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
setup do |
|
|
|
setup tags do |
|
|
|
:ok = Ecto.Adapters.SQL.Sandbox.checkout(Explorer.Repo) |
|
|
|
:ok = Ecto.Adapters.SQL.Sandbox.checkout(Explorer.Repo) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
unless tags[:async] do |
|
|
|
|
|
|
|
Ecto.Adapters.SQL.Sandbox.mode(Explorer.Repo, {:shared, self()}) |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
metadata = Phoenix.Ecto.SQL.Sandbox.metadata_for(Explorer.Repo, self()) |
|
|
|
metadata = Phoenix.Ecto.SQL.Sandbox.metadata_for(Explorer.Repo, self()) |
|
|
|
{:ok, session} = Wallaby.start_session(metadata: metadata) |
|
|
|
{:ok, session} = Wallaby.start_session(metadata: metadata) |
|
|
|
session = Wallaby.Browser.resize_window(session, 1200, 800) |
|
|
|
session = Wallaby.Browser.resize_window(session, 1200, 800) |
|
|
|