WallabyFillForm
WallabyFillForm allows you to specify a keyword list of attributes to be input
rather than procedurally calling Wallaby's DSL methods.
Usage
session
|> visit("/sign_up")
|> WallabyFillForm.fill_form(%{
:email => "email@example.com",
:password => "password",
"First Name" => "Name",
:subscribe => true,
})
# It also works with keyword lists
session
|> visit("/sign_up")
|> WallabyFillForm.fill_form([email: "email@example.com"])Installation
Add wallaby_fill_form to your list of dependencies in mix.exs:
def deps do
[
{:wallaby_fill_form, "~> 0.1.0"},
]
endSupported Types
| Type of Value | Action |
|---|---|
is_boolean/1 | Sets a checkbox |
is_binary/1 or is_number/1 | fill_in/3 or selects from a dropdown |
Contributing
See the CONTRIBUTING document. Thank you, contributors!
License
WallabyFillForm is Copyright (c) 2017 thoughtbot, inc. It is free software, and may be redistributed under the terms specified in the LICENSE file.
About
WallabyFillForm is maintained and funded by thoughtbot, inc. The names and logos for thoughtbot are trademarks of thoughtbot, inc.
We love open source software, Elixir, and Phoenix. See our other Elixir projects, or hire our Elixir/Phoenix development team to design, develop, and grow your product.