location.feature
1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Feature: Location
As a user
I want to edit my address and location
So that others can find me in the map
Background:
And the following users
| login |
| zezinho |
And I am logged in as "zezinho"
Scenario: editing my address
Given the following Person fields are active fields
| address |
| country |
| state |
| city |
| zip_code |
And I go to zezinho's control panel
And I follow "Location"
When I fill in "Address" with "Rua Marechal Floriano, 28"
And I select "Brazil" from "Country"
And I fill in "State" with "Bahia"
And I fill in "City" with "Salvador"
And I fill in "ZIP code" with "40110010"
And I follow "Locate in the map"
And I press "Save"
Then "zezinho" should have the following data
| address | country | state | city | zip_code |
| Rua Marechal Floriano, 28 | BR | Bahia | Salvador | 40110010 |
Scenario Outline: editing address of collectives
Given the following <class> fields are active fields
| address |
| country |
| state |
| city |
| zip_code |
Given the following <plural>
| identifier | name | owner |
| mycollective | My Collective | zezinho |
And I am on mycollective's control panel
And I follow "Location"
And I select "Brazil" from "Country"
And I fill in the following:
| Address | Rua Marechal Floriano, 28 |
| State | Bahia |
| City | Salvador |
| ZIP code | 40110010 |
When I press "Save"
Then "mycollective" should have the following data
| address | country | state | city | zip_code |
| Rua Marechal Floriano, 28 | BR | Bahia | Salvador | 40110010 |
Examples:
| class | plural |
| Community | communities |
| Enterprise | enterprises |