Style canges and enabled Spanish

This commit is contained in:
Godwin
2016-05-15 12:51:50 -07:00
parent 13541537cc
commit 6ad06697c5
180 changed files with 568 additions and 59627 deletions
-111
View File
@@ -1,111 +0,0 @@
Feature: Registration Page
In order to register for Bike!Bike!
As a visitor
Scenario: View stats
Given There is an upcoming conference in Anchorage AK
And Registration is open
And I am logged in as someguy@bikebike.org
And My name is Jeff
And I am a conference host
And I am registered for the conference
And I am on the stats page
Then I should see Total Registrations
Scenario: View stats.xls
Given There is an upcoming conference in Anchorage AK
And Registration is open
And I am logged in as someguy@bikebike.org
And My name is Jeff
And I am a conference host
And I am registered for the conference
And I am on the stats.xls page
Scenario: Start registration from landing page
Given There is an upcoming conference in Halifax NS
And Registration is open
And a workshop titled My Awesome Workshop exists
And I am on the landing page
Then I see the Bike!Bike! logo
And I see a Register link
And I click on the Register link
Then I am on the registration page
And I fill in email with myemail@bikebike.org
And press register
Then I should get a Confirmation email
And that email should contain /confirm/
And I confirm my account
Then I should see Agreement
And I press policy
Then I should see name
And I should see Where are you coming from
And I should see Arrival
And I should see Departure
And I fill in name with John Doe
And fill in location with Mushaboom, NS
And enter 2016-01-01 as my arrival
And enter 2016-01-04 as my departure
And select en as my language
And select none as my housing
And select a small bike
And choose vegan food
And press save
Then I should see Payment
And I should be registered for the conference
Then I pay 50.0
And I finish with paypal
Then I should see confirm
And I should see 50.00
Then press paypal confirmed
Then I should see John Doe
And I should see Mushaboom, NS
And I should see January
And I should see English
And I should see none
And I should see Vegan
And I should see 50.00
Scenario: Broadcast message
Given There is an upcoming conference in San Marcos TX
And Registration is open
And I am logged in as somebody@bikebike.org
And My name is John Doe
And I am a conference host
And I am registered for the conference
And I am on the broadcast page
Then I see the Bike!Bike! logo
And I should see Subject
And I fill in subject with My Subject
And I fill in content with Lorem Ipsum
And I press test
Then I should see somebody@bikebike.org
Then I press preview
Then I should see Lorem Ipsum
And I press send
Then I should see email has been sent
And I should see Preview
And I should see My Subject
Scenario: Edit a conference
Given There is an upcoming conference in Portland OR
And Registration is open
And I am logged in as somebody@bikebike.org
And My name is John Doe
And I am a conference host
And I am registered for the conference
And I am on the edit conference page
Then I should see Edit Spanish
-26
View File
@@ -1,26 +0,0 @@
Feature: Workshop Page
In order to facilitate and attend workshops
As a visitor
Scenario: View published schedule
Given There is an upcoming conference in Boise ID
And Registration is open
And a location named The Shop exists
And a workshop titled Bikes and Beers exists
And the workshop is scheduled for day 2 at 9:00 at The Shop
And a workshop titled Bike Art exists
And the workshop is scheduled for day 2 at 12:00 at The Shop
And a workshop titled Advocacy Now! exists
And the workshop is scheduled for day 2 at 14:00 at The Shop
And a workshop titled Public Outreach exists
And the workshop is scheduled for day 2 at 21:00 at The Shop
And the workshop schedule is published
And I am on the landing page
Then I see the Bike!Bike! logo
+9 -1
View File
@@ -48,6 +48,7 @@ Before('@javascript') do
end
Before do
# user_agent = "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36"
user_agent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/7046A194A"
#request.stub!(:user_agent).and_return()
#controller.request.stub!(:user_agent).and_return(user_agent)
@@ -111,7 +112,14 @@ def create_org(name = nil, location = nil)
found_location = nil
if location.present?
cache_file = File.join(File.dirname(__FILE__), 'location_cache.yml')
cache = File.exists?(cache_file) ? YAML.load_file(cache_file) : {}
cache = {}
if File.exists?(cache_file)
begin
cache = YAML.load_file(cache_file)
rescue
# get rid of the cache if there's an error
end
end
l = cache[location]
if l.nil?
l = Geocoder.search(location).first
+2 -247
View File
@@ -81,7 +81,7 @@
bounds:
northeast:
lat: 45.96934
lng: -64.31345000000002
lng: -64.31372929999999
southwest:
lat: 45.86707
lng: -64.4562439
@@ -92,7 +92,7 @@
viewport:
northeast:
lat: 45.96934
lng: -64.31345000000002
lng: -64.31372929999999
southwest:
lat: 45.86707
lng: -64.4562439
@@ -102,248 +102,3 @@
- locality
- political
cache_hit:
" in Anchorage AK": !ruby/object:Geocoder::Result::Google
data:
address_components:
- long_name: Anchorage
short_name: Anchorage
types:
- locality
- political
- long_name: Anchorage
short_name: Anchorage
types:
- administrative_area_level_2
- political
- long_name: Alaska
short_name: AK
types:
- administrative_area_level_1
- political
- long_name: United States
short_name: US
types:
- country
- political
formatted_address: Anchorage, AK, USA
geometry:
bounds:
northeast:
lat: 61.4838912
lng: -148.460007
southwest:
lat: 60.733791
lng: -150.2862833
location:
lat: 61.2180556
lng: -149.9002778
location_type: APPROXIMATE
viewport:
northeast:
lat: 61.4838912
lng: -148.460007
southwest:
lat: 60.733791
lng: -150.2862833
partial_match: true
place_id: ChIJQT-zBHaRyFYR42iEp1q6fSU
types:
- locality
- political
cache_hit:
" in San Marcos TX": !ruby/object:Geocoder::Result::Google
data:
address_components:
- long_name: San Marcos
short_name: San Marcos
types:
- locality
- political
- long_name: Hays County
short_name: Hays County
types:
- administrative_area_level_2
- political
- long_name: Texas
short_name: TX
types:
- administrative_area_level_1
- political
- long_name: United States
short_name: US
types:
- country
- political
formatted_address: San Marcos, TX, USA
geometry:
bounds:
northeast:
lat: 29.9605819
lng: -97.8419149
southwest:
lat: 29.777154
lng: -98.012087
location:
lat: 29.8832749
lng: -97.9413941
location_type: APPROXIMATE
viewport:
northeast:
lat: 29.9605819
lng: -97.8419149
southwest:
lat: 29.777154
lng: -98.012087
partial_match: true
place_id: ChIJWUZBNCqnXIYRJzGOU2wzOi8
types:
- locality
- political
cache_hit:
" in Guadalajara Mexico": !ruby/object:Geocoder::Result::Google
data:
address_components:
- long_name: Guadalajara
short_name: Guadalajara
types:
- locality
- political
- long_name: Guadalajara
short_name: Guadalajara
types:
- administrative_area_level_2
- political
- long_name: Jalisco
short_name: Jal.
types:
- administrative_area_level_1
- political
- long_name: Mexico
short_name: MX
types:
- country
- political
formatted_address: Guadalajara, Jalisco, Mexico
geometry:
bounds:
northeast:
lat: 20.7438464
lng: -103.2637617
southwest:
lat: 20.6037373
lng: -103.4070646
location:
lat: 20.6596988
lng: -103.3496092
location_type: APPROXIMATE
viewport:
northeast:
lat: 20.7438464
lng: -103.2637617
southwest:
lat: 20.6037373
lng: -103.4070646
partial_match: true
place_id: ChIJm9MvtYyxKIQRUFeGvwKTPdY
types:
- locality
- political
cache_hit:
" in Portland OR": !ruby/object:Geocoder::Result::Google
data:
address_components:
- long_name: Portland
short_name: Portland
types:
- locality
- political
- long_name: Multnomah County
short_name: Multnomah County
types:
- administrative_area_level_2
- political
- long_name: Oregon
short_name: OR
types:
- administrative_area_level_1
- political
- long_name: United States
short_name: US
types:
- country
- political
formatted_address: Portland, OR, USA
geometry:
bounds:
northeast:
lat: 45.6524799
lng: -122.4718489
southwest:
lat: 45.432393
lng: -122.8369952
location:
lat: 45.5230622
lng: -122.6764816
location_type: APPROXIMATE
viewport:
northeast:
lat: 45.6524799
lng: -122.4718489
southwest:
lat: 45.432393
lng: -122.8369952
partial_match: true
place_id: ChIJJ3SpfQsLlVQRkYXR9ua5Nhw
types:
- locality
- political
cache_hit:
" in Boise ID": !ruby/object:Geocoder::Result::Google
data:
address_components:
- long_name: Boise
short_name: Boise
types:
- locality
- political
- long_name: Ada County
short_name: Ada County
types:
- administrative_area_level_2
- political
- long_name: Idaho
short_name: ID
types:
- administrative_area_level_1
- political
- long_name: United States
short_name: US
types:
- country
- political
formatted_address: Boise, ID, USA
geometry:
bounds:
northeast:
lat: 43.6898951
lng: -116.101909
southwest:
lat: 43.511717
lng: -116.3658869
location:
lat: 43.6187102
lng: -116.2146068
location_type: APPROXIMATE
viewport:
northeast:
lat: 43.6898951
lng: -116.101909
southwest:
lat: 43.511717
lng: -116.3658869
partial_match: true
place_id: ChIJnbRH6XLxrlQRm51nNpuYW5o
types:
- locality
- political
cache_hit:
-134
View File
@@ -1,134 +0,0 @@
Feature: Workshop Page
In order to facilitate and attend workshops
As a visitor
Scenario: Create workshop
Given There is an upcoming conference in San Marcos TX
And Registration is open
And I am logged in as somebody@bikebike.org
And My name is John Doe
And I am registered for the conference
And I am on the registration page
Then I see the Bike!Bike! logo
And I see Payment
And I see Workshops
And I visit the workshops page
Then I should see New Workshop
And I should see Your Workshops
And I click on New Workshop link
Then I should see Title
And I fill in title with My Workshop Title
And I fill in info with Lorem Ipsum
And I save the workshop
Then I should see My Workshop Title
And I view my workshop
Then I should see Facilitators
And I should see John Doe creator
And I should see Edit
Then I edit the workshop
Then I fill in title with Super Awesome Workshop
Then I click the save button
Then I should see Super Awesome Workshop
And I should not see My Workshop Title
Then I view my workshop
Then I delete the workshop
And I click on the confirm button
Then I should see Your Workshops
And I should not see My Workshop Title
And I should not see Super Awesome Workshop
Scenario: Be the first to like a workshop
Given There is an upcoming conference in Guadalajara Mexico
And Registration is open
And I am logged in as somebody@bikebike.org
And My name is John Doe
And I am registered for the conference
And a workshop exists
And I view the workshop
Then I should see No one is interested
Then click on toggle_interest button
Then I should see You are interested
Then I click on toggle_interest button
Then I should see No one is interested
Scenario: Like a workshop
Given There is an upcoming conference in Guadalajara Mexico
And Registration is open
And I am logged in as somebody@bikebike.org
And My name is John Doe
And I am registered for the conference
And a workshop exists
And 4 people are interested in the workshop
And I view the workshop
Then I should see 4 people are interested
Then click on toggle_interest button
Then I should see You and 4 others are interested
Then I click on toggle_interest button
Then I should see 4 people are interested
Scenario: Request to facilitate a workshop
Given There is an upcoming conference in Guadalajara Mexico
And Registration is open
And I am logged in as somebody@bikebike.org
And My name is John Doe
And I am registered for the conference
And a workshop exists
And I view the workshop
Then I click on the Make a facilitation request link
Then I should see Request to Facilitate
Then I enter Please let me join as my message
Then I click the send button
Then I should see Your request has been sent
Scenario: Request to facilitate a workshop
Given There is an upcoming conference in Guadalajara Mexico
And Registration is open
And I am logged in as somebody@bikebike.org
And My name is John Doe
And I am registered for the conference
And I have created a workshop titled My Awesome Workshop
And Joey is also facilitating my workshop
And Katie has requested to facilitate my workshop
And Jim has requested to facilitate my workshop
And a user named Ricardo with the email ricky@bikebike.org exists
And Joey is registered for the conference
And Jim is registered for the conference
And Katie is registered for the conference
And Ricardo is registered for the conference
And I view the workshop
Then I should see Joey Collaborator
And I should see Katie Requested
And I should see Jim Requested
Then I approve the facilitator request from Jim
And I should see Jim Collaborator
And I should see Katie Requested
Then I deny the facilitator request from Katie
And I should see Jim Collaborator
And I should not see Katie
And I fill in email with ricky@bikebike.org
And I click the + button
Then I should see Ricardo Collaborator
And I fill in email with nicky@bikebike.org
And I click the + button
Then I should see nicky@bikebike.org Unregistered