Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Open PhantomJS in a bigger window to avoid responsive layout issues
- Loading branch information
1 parent
bde0148
commit 00a19bd
Showing
2 changed files
with
37 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
defmodule PhoenixHoundIssue_116.IntegrationCase do | ||
use ExUnit.CaseTemplate | ||
|
||
using do | ||
quote do | ||
use Hound.Helpers | ||
|
||
import Ecto.Model | ||
import Ecto.Query, only: [from: 2] | ||
import PhoenixHoundIssue_116.Router.Helpers | ||
|
||
alias PhoenixHoundIssue_116.Repo | ||
|
||
# The default endpoint for testing | ||
@endpoint PhoenixHoundIssue_116.Endpoint | ||
|
||
hound_session | ||
end | ||
end | ||
|
||
setup(context \\ %{}) do | ||
Hound.start_session(Map.get(context, :hound_options, [])) | ||
Hound.Helpers.Window.current_window_handle | ||
|> Hound.Helpers.Window.maximize_window | ||
|
||
:ok | ||
end | ||
|
||
setup tags do | ||
unless tags[:async] do | ||
Ecto.Adapters.SQL.restart_test_transaction(PhoenixHoundIssue_116.Repo, []) | ||
end | ||
|
||
:ok | ||
end | ||
end |