Feature: Search books
Books should be searchable by title, authors or isbn code
Search results should provide the list of books
Scenario: Search by title
Given I have the following books in my database:
| id | isbn | title | price |
| 1 | 978-0747558194 | Harry Potter and the philosopher's stone | 20.0 |
| 2 | 978-0048232298 | The Lord of the Rings | 16 |
When I search for Potter
Then I should see the following books:
| id | isbn | title | price |
| 1 | 978-0747558194 | Harry Potter and the philosopher's stone | 20.0 |
My problem raise when I try to compare dictionaries (the first from feature and the second one from database).
In short terms when I compare these two dictionaries assertion fail because id and price does not match.
Data from feature table are pure strings while data from database are numbers.
Thanks in advance.