bdd: convert API tests to smaller test db

Changes BDD API tests to restrict themselves to
Liechtenstein. One test moved to DB as no appropriate
data is available.
This commit is contained in:
Sarah Hoffmann
2021-01-09 16:59:46 +01:00
parent 74122dc965
commit 5d656891ba
17 changed files with 262 additions and 265 deletions

View File

@@ -2,35 +2,35 @@
Feature: Localization of reverse search results
Scenario: default language
When sending json reverse coordinates 18.1147,-15.95
When sending json reverse coordinates 47.14,9.55
Then result addresses contain
| ID | country |
| 0 | موريتانيا |
| 0 | Liechtenstein |
Scenario: accept-language parameter
When sending json reverse coordinates 18.1147,-15.95
When sending json reverse coordinates 47.14,9.55
| accept-language |
| en,fr |
| ja,en |
Then result addresses contain
| ID | country |
| 0 | Mauritania |
| 0 | |
Scenario: HTTP accept language header
Given the HTTP header
| accept-language |
| fr-ca,fr;q=0.8,en-ca;q=0.5,en;q=0.3 |
When sending json reverse coordinates 18.1147,-15.95
| fo-ca,fo;q=0.8,en-ca;q=0.5,en;q=0.3 |
When sending json reverse coordinates 47.14,9.55
Then result addresses contain
| ID | country |
| 0 | Mauritanie |
| 0 | Liktinstein |
Scenario: accept-language parameter and HTTP header
Given the HTTP header
| accept-language |
| fr-ca,fr;q=0.8,en-ca;q=0.5,en;q=0.3 |
When sending json reverse coordinates 18.1147,-15.95
| fo-ca,fo;q=0.8,en-ca;q=0.5,en;q=0.3 |
When sending json reverse coordinates 47.14,9.55
| accept-language |
| en |
Then result addresses contain
| ID | country |
| 0 | Mauritania |
| 0 | Liechtenstein |