Skip to content

Commit

Permalink
Only document open_browser/1 (#35)
Browse files Browse the repository at this point in the history
This adds `@doc false` to `open_browser/2` (only used for tests) so that
`mix docs` doesn't error out on us.
  • Loading branch information
sodapopcan authored and germsvel committed Feb 20, 2024
1 parent ba83449 commit 7407b19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/phoenix_test.ex
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,9 @@ defmodule PhoenixTest do
|> submit_form("#user-form", name: "Aragorn")
```
"""
defdelegate open_browser(session), to: Driver

@doc false
defdelegate open_browser(session, open_fun), to: Driver

@doc """
Expand Down
1 change: 1 addition & 0 deletions lib/phoenix_test/driver.ex
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ defprotocol PhoenixTest.Driver do
def click_button(session, selector, text)
def fill_form(session, selector, form_data)
def submit_form(session, selector, form_data)
def open_browser(session)
def open_browser(session, open_fun)
end

0 comments on commit 7407b19

Please sign in to comment.