Browse Source

Fixed broken tests and disabled ajax on registration for i18n capturing

development
Godwin 8 years ago
parent
commit
c5143ddb0e
  1. 2
      app/helpers/registration_helper.rb
  2. 16
      features/registration.feature

2
app/helpers/registration_helper.rb

@ -133,7 +133,7 @@ module RegistrationHelper
content_tag(:div, actions.html_safe, class: :buttons).html_safe content_tag(:div, actions.html_safe, class: :buttons).html_safe
end end
form_tag(register_path(conference.slug), class: @no_ajax ? nil : 'js-xhr') do form_tag(register_path(conference.slug), class: (LinguaFranca.recording? || @no_ajax ? nil : 'js-xhr')) do
content.html_safe + content.html_safe +
(hidden_field_tag :step, step).html_safe + (hidden_field_tag :step, step).html_safe +
actions.html_safe actions.html_safe

16
features/registration.feature

@ -40,7 +40,7 @@ Feature: Registration
Then I should see 'Which languages do you speak?' Then I should see 'Which languages do you speak?'
When I click the 'Next' button When I click the 'Next' button
Then I should see 'Are you representing a bicycle collective?' Then I should see 'Do you participate in a community bicycle project?'
When I click the 'Yes' button When I click the 'Yes' button
Then I should see 'In which city or town is your organization based?' Then I should see 'In which city or town is your organization based?'
@ -162,7 +162,7 @@ Feature: Registration
Then I should see 'Which languages do you speak?' Then I should see 'Which languages do you speak?'
When I click the 'Next' button When I click the 'Next' button
Then I should see 'Are you representing a bicycle collective?' Then I should see 'Do you participate in a community bicycle project?'
When I click the 'Yes' button When I click the 'Yes' button
Then I should see 'In which city or town is your organization based?' Then I should see 'In which city or town is your organization based?'
@ -172,7 +172,7 @@ Feature: Registration
Then I should see 'Did you mean Moncton, New Brunswick, Canada?' Then I should see 'Did you mean Moncton, New Brunswick, Canada?'
When I click the 'Yes' button When I click the 'Yes' button
Then I should see 'What is the name or your organization?' Then I should see 'What is the name of your organization?'
When I fill in the name with 'Coopérative La Bikery Cooperative' When I fill in the name with 'Coopérative La Bikery Cooperative'
And click the 'Next' button And click the 'Next' button
@ -243,7 +243,7 @@ Feature: Registration
Then I should see 'Which languages do you speak?' Then I should see 'Which languages do you speak?'
When I click the 'Next' button When I click the 'Next' button
Then I should see 'Are you representing a bicycle collective?' Then I should see 'Do you participate in a community bicycle project?'
When I click the 'No' button When I click the 'No' button
Then I should see 'In which city or town are you based?' Then I should see 'In which city or town are you based?'
@ -309,7 +309,7 @@ Feature: Registration
Then I should see 'Which languages do you speak?' Then I should see 'Which languages do you speak?'
When I click the 'Next' button When I click the 'Next' button
Then I should see 'Are you representing a bicycle collective?' Then I should see 'Do you participate in a community bicycle project?'
When I click the 'No' button When I click the 'No' button
Then I should see 'In which city or town are you based?' Then I should see 'In which city or town are you based?'
@ -420,7 +420,7 @@ Feature: Registration
Then I should see 'Select at least one language' Then I should see 'Select at least one language'
When I click the 'Next' button When I click the 'Next' button
Then I should see 'Are you representing a bicycle collective?' Then I should see 'Do you participate in a community bicycle project?'
When I click the 'Yes' button When I click the 'Yes' button
Then I should see 'In which city or town is your organization based?' Then I should see 'In which city or town is your organization based?'
@ -438,7 +438,7 @@ Feature: Registration
Then I should see 'Which organization are you a member of?' Then I should see 'Which organization are you a member of?'
When I click the 'None of the above' button When I click the 'None of the above' button
Then I should see 'What is the name or your organization?' Then I should see 'What is the name of your organization?'
When I click the 'Next' button When I click the 'Next' button
Then I should see 'Enter the name of your organization' Then I should see 'Enter the name of your organization'
@ -571,7 +571,7 @@ Scenario: Housing providers can enter incorrect data and fix it
Then I should see 'Which languages do you speak?' Then I should see 'Which languages do you speak?'
When I click the 'Next' button When I click the 'Next' button
Then I should see 'Are you representing a bicycle collective?' Then I should see 'Do you participate in a community bicycle project?'
When I click the 'No' button When I click the 'No' button
Then I should see 'In which city or town are you based?' Then I should see 'In which city or town are you based?'

Loading…
Cancel
Save