forked from openstreetmap/openstreetmap-website
-
Notifications
You must be signed in to change notification settings - Fork 1
/
visitor_about.feature
85 lines (66 loc) · 3.24 KB
/
visitor_about.feature
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
Feature: Learn about the Microcosm
In order to learn about this microcosm
as a visitor
I want to read their webpage
Background:
Given there is a microcosm "MappingDC", "Washington, DC, USA", "38.9", "-77.03", "38.516", "39.472", "-77.671", "-76.349"
And the microcosm has description "MappingDC strives to improve OSM in the DC area"
And the microcosm has the "Facebook" page "https://facebook.com/groups/mappingdc"
And the microcosm has the "Twitter" page "https://twitter.com/mappingdc"
And the microcosm has the "Website" page "https://mappingdc.org"
And I am on the microcosm "MappingDC" page
Scenario: The microcosm should be listed
When I am on the microcosms page
Then I should see "MappingDC"
Scenario: Describe the microcosm
Then I should see the microcosm "MappingDC" name
Then I should see "Washington, DC, USA"
Then I should see the "Facebook" link to "https://facebook.com/groups/mappingdc"
Then I should see the "Twitter" link to "https://twitter.com/mappingdc"
Then I should see the "Website" link to "https://mappingdc.org"
Then I should see "MappingDC strives to improve OSM in the DC area"
Scenario: Can load by id
Then I am on the microcosm page by id
Then I should see "MappingDC strives to improve OSM in the DC area"
# @javascript
# Scenario: Can see a map of the microcosm area
# When I am on the microcosm page by id
# Then I should see a map of the microcosm centered at their AOI
Scenario: Regular user cannot edit the microcosm
Given there is a user "abe@example.com" with name "Abe"
When user "abe@example.com" logs in
When I am on the microcosm edit page
Then I should be forbidden
Scenario: Logged out user sees message to join microcosm
Given there is a user "abe@example.com" with name "Abe"
When I am on the microcosm "MappingDC" page
Then I press "Join"
Scenario: A user may join a microcosm
Given there is a user "abe@example.com" with name "Abraham"
When user "abe@example.com" logs in
And I am on the microcosm "MappingDC" page
And I should see a "Join" button
And I press "Join"
Then I should see "Abraham"
Scenario: See upcoming events
Given there is a user "abe@example.com" with name "Abe"
And this user is an "organizer" of this microcosm
When user "abe@example.com" logs in
And I am on the microcosm "MappingDC" page
And I click "Upcoming Events"
And I click "new event"
And I set the event to "Update DC Bike Lanes", "2030-01-20T12:34", "DC Library", "We will update the dc bike lane data in OSM."
And I submit the form
And I logout
And I am on the microcosm "MappingDC" page
And I click "Upcoming Events"
Then I should see "Update DC Bike Lanes"
When I am on the all events page
Then I should see "Update DC Bike Lanes"
Scenario: See recent changesets
Given there is a user "abe@example.com" with name "Abe"
And there is a changeset by "Abe" at "38.8", "39.1", "-77.1", "-76.8" with comment "Add public bookcase"
And there is a changeset by "Abe" at "138.8", "139.1", "-7.1", "-6.8" with comment "Add library"
When I am on the microcosm "MappingDC" page
Then I should see "Add public bookcase"
And I should not see "Add library"