From 8a997a862920dd8aa7e0e3fc964870429f242d36 Mon Sep 17 00:00:00 2001 From: dvic Date: Wed, 12 Jul 2023 20:53:47 +0200 Subject: [PATCH] New options are documented --- lib/wallaby/feature.ex | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/wallaby/feature.ex b/lib/wallaby/feature.ex index 758bde48..e3523adf 100644 --- a/lib/wallaby/feature.ex +++ b/lib/wallaby/feature.ex @@ -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. ```