Skip to content

Commit

Permalink
New options are documented
Browse files Browse the repository at this point in the history
  • Loading branch information
dvic committed Jul 12, 2023
1 parent 7f55ad0 commit 8a997a8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/wallaby/feature.ex
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,19 @@ defmodule Wallaby.Feature do
end
```
If you need to change the capabilities sent to the session for a specific feature, you can assign `@sessions` to a list of keyword lists of the options to be passed to `Wallaby.start_session/1`. This will start the number of sessions equal to the size of the list.
If you need to change the headless mode, binary path, or capabilities sent to the session for a specific feature, you can assign `@sessions` to a list of keyword lists of the options to be passed to `Wallaby.start_session/1`. This will start the number of sessions equal to the size of the list.
```
@sessions [
[capabilities: %{}]
[headless: false, binary: "some_path", capabilities: %{}]
]
feature "test with different capabilities", %{session: session} do
# ...
end
```
You can also control
If you don't wish to `use Wallaby.Feature` in your test module, you can add the following code to configure Ecto and create a session.
```
Expand Down

0 comments on commit 8a997a8

Please sign in to comment.