Skip to content

Commit

Permalink
Add a recommendation for "Capybara.match = :prefer_exact" to the README.
Browse files Browse the repository at this point in the history
  • Loading branch information
makmic committed Feb 26, 2020
1 parent c0f88b7 commit 4a6e102
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ Capybara.default_normalize_ws = true

This will affect all Spreewald steps that are using Capybara's `:text` option.
Furthermore, we recommend setting [Capybara's matching strategy](https://github.com/teamcapybara/capybara/blob/master/README.md#strategy) to `:prefer_exact`. This will positively affect Spreewald steps as it prevents the `Capybara::Ambiguous` error in the edge case when two fields are matching the given name, but one of the matches includes the name only as a substring,

```ruby
Capybara.match = :prefer_exact
````
## Contributing
Expand Down

0 comments on commit 4a6e102

Please sign in to comment.