Update copy, tests, and administration
This commit is contained in:
@@ -13,7 +13,7 @@ Feature: Registration
|
||||
|
||||
When I enter my email address
|
||||
And press confirm email
|
||||
Then I should see 'Confirm Email'
|
||||
Then I should see 'Confirmation Sent'
|
||||
And I should get a 'confirmation' email
|
||||
|
||||
When I click on the 'Confirm' link in the email
|
||||
@@ -80,7 +80,7 @@ Feature: Registration
|
||||
Then I should see 'Do you plan to attend the group ride?'
|
||||
|
||||
When I click on the 'Yes' button
|
||||
Then I should see 'Anything else?'
|
||||
Then I should see 'Other considerations'
|
||||
|
||||
When I fill in other with 'Thanks!'
|
||||
And click the 'Next' button
|
||||
@@ -90,7 +90,7 @@ Feature: Registration
|
||||
Then I should see 'Registration Fee Amount'
|
||||
|
||||
When I click on the '$25.00' button
|
||||
Then I should get a 'Thank you for registering for Bike!Bike! 2025' email
|
||||
Then I should get a 'Thank you for registering' email
|
||||
And I should see 'Your registration is complete'
|
||||
And I should see 'Seattle'
|
||||
And see 'Bike Works'
|
||||
@@ -134,7 +134,7 @@ Feature: Registration
|
||||
|
||||
When I enter my email address
|
||||
And press confirm email
|
||||
Then I should see 'Confirm Email'
|
||||
Then I should see 'Confirmation Sent'
|
||||
And I should get a 'confirmation' email
|
||||
|
||||
When I click on the 'Confirm' link in the email
|
||||
@@ -196,7 +196,7 @@ Feature: Registration
|
||||
And click on 'pay now with PayPal'
|
||||
And click on the '$25.00' button
|
||||
And click the 'Confirm' button
|
||||
Then I should get a 'Thank you for registering for Bike!Bike! 2025' email
|
||||
Then I should get a 'Thank you for registering' email
|
||||
And I should see 'Moncton'
|
||||
And I should see 'Coopérative La Bikery Cooperative'
|
||||
And I should see 'I don't need a place to stay'
|
||||
@@ -215,7 +215,7 @@ Feature: Registration
|
||||
|
||||
When I enter my email address
|
||||
And press confirm email
|
||||
Then I should see 'Confirm Email'
|
||||
Then I should see 'Confirmation Sent'
|
||||
And I should get a 'confirmation' email
|
||||
|
||||
When I click on the 'Confirm' link in the email
|
||||
@@ -263,7 +263,7 @@ Feature: Registration
|
||||
And click on the 'No' button
|
||||
And click the 'Next' button
|
||||
And click on the 'Not now' button
|
||||
Then I should get a 'Thank you for registering for Bike!Bike! 2025' email
|
||||
Then I should get a 'Thank you for registering' email
|
||||
And I should see 'Ecum Secum'
|
||||
And I should see 'Because Reasons'
|
||||
And I should see 'I am vegetarian'
|
||||
@@ -281,7 +281,7 @@ Feature: Registration
|
||||
|
||||
When I enter my email address
|
||||
And press confirm email
|
||||
Then I should see 'Confirm Email'
|
||||
Then I should see 'Confirmation Sent'
|
||||
And I should get a 'confirmation' email
|
||||
|
||||
When I click on the 'Confirm' link in the email
|
||||
@@ -379,7 +379,7 @@ Feature: Registration
|
||||
|
||||
When I enter my email address as 'me@bikebike.org'
|
||||
And press confirm email
|
||||
Then I should see 'Confirm Email'
|
||||
Then I should see 'Confirmation Sent'
|
||||
And I should get a 'confirmation' email
|
||||
|
||||
When I click on the 'Confirm' link in the email
|
||||
@@ -543,7 +543,7 @@ Scenario: Housing providers can enter incorrect data and fix it
|
||||
|
||||
When I enter my email address
|
||||
And press confirm email
|
||||
Then I should see 'Confirm Email'
|
||||
Then I should see 'Confirmation Sent'
|
||||
And I should get a 'confirmation' email
|
||||
|
||||
When I click on the 'Confirm' link in the email
|
||||
|
||||
@@ -162,5 +162,6 @@ Then /^(?:my |the )([A-Z][a-z]+ )?(workshop|conference|user|conference registrat
|
||||
object = TestState.send("last_#{type.gsub(' ', '_')}")
|
||||
attribute = attribute.gsub(' ', '_').downcase
|
||||
actual_value = locale ? object.get_column_for_locale!(attribute, get_locale(locale)) : object.send(attribute)
|
||||
actual_value = ActionView::Base.full_sanitizer.sanitize(actual_value)
|
||||
expect(actual_value).send(negate ? :not_to : :to, (be == value))
|
||||
end
|
||||
|
||||
+23
-4
@@ -69,12 +69,32 @@ After do
|
||||
DatabaseCleaner.clean
|
||||
end
|
||||
|
||||
AfterStep do
|
||||
def step_wait_time(keyword)
|
||||
# give additional wait time to Given and When steps
|
||||
|
||||
if keyword == 'And' || keyword == 'But'
|
||||
keyword = @_last_keyword
|
||||
end
|
||||
|
||||
@_last_keyword = keyword
|
||||
|
||||
case keyword
|
||||
when 'Given'
|
||||
return 1
|
||||
when 'When'
|
||||
return 3
|
||||
end
|
||||
|
||||
return 0.5
|
||||
end
|
||||
|
||||
AfterStep do |scenario, step|
|
||||
# capture used selectors to generate css coverage
|
||||
Marmara.record(page) if Marmara.recording?
|
||||
Marmara.record(step.source.last.keyword) if Marmara.recording?
|
||||
|
||||
# take some extra time between steps if we're recording
|
||||
sleep(0.5) if LinguaFranca.recording?
|
||||
keyword = step.source.last.keyword.strip
|
||||
sleep(step_wait_time(keyword)) if LinguaFranca.recording?
|
||||
end
|
||||
|
||||
Cucumber::Rails::Database.javascript_strategy = :transaction
|
||||
@@ -84,5 +104,4 @@ Geocoder.configure(timeout: 60)
|
||||
|
||||
at_exit do
|
||||
Marmara.stop_recording if Marmara.recording?
|
||||
# LinguaFranca.capture_translations if LinguaFranca.recording?
|
||||
end
|
||||
|
||||
@@ -85,7 +85,7 @@ end
|
||||
def emails_to(email_address, subject = nil)
|
||||
ActionMailer::Base.deliveries.select do |mail|
|
||||
mail.to.include?(email_address) &&
|
||||
(subject.nil? || mail.subject.downcase.include?(subject.downcase))
|
||||
(subject.nil? || ActionView::Base.full_sanitizer.sanitize(mail.subject).downcase.include?(subject.downcase))
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ module NavigationHelpers
|
||||
path = :confirm
|
||||
args << TestState.last_token
|
||||
when /^google maps$/
|
||||
path = /^https?:\/\/www\.google\.com\/maps\/place\/.*/
|
||||
path = /^https?:\/\/www\.google\.com\/maps\/.*/
|
||||
end
|
||||
|
||||
if path.is_a?(Symbol)
|
||||
|
||||
@@ -48,7 +48,7 @@ Feature: Workshops
|
||||
And should see 'Education'
|
||||
|
||||
When I click the 'Workshops' link
|
||||
Then I should see two workshops
|
||||
Then I should see one workshop
|
||||
|
||||
When I click on the 'Details' link
|
||||
Then I should see 'Tools'
|
||||
@@ -254,9 +254,7 @@ Feature: Workshops
|
||||
|
||||
And I am on the workshops page
|
||||
|
||||
Then I should see seven workshops
|
||||
And I should see two workshops under 'Your Workshops'
|
||||
And see five workshops under 'All Other Workshops'
|
||||
Then I should see five workshops
|
||||
And I should see '3-Speed Hubs and the trouble with Sexism No one is interested in this workshop yet'
|
||||
And see 'Bike Polo! Mallet making and game 5 people are interested in this workshop'
|
||||
And see 'The future of Bike! Bike! 10 people are interested in this workshop'
|
||||
|
||||
Reference in New Issue
Block a user