-
diff --git a/app/views/publisher/_publisher_blueprint.html.haml b/app/views/publisher/_publisher_blueprint.html.haml
index b54a3e716..b43ea5512 100644
--- a/app/views/publisher/_publisher_blueprint.html.haml
+++ b/app/views/publisher/_publisher_blueprint.html.haml
@@ -37,7 +37,7 @@
= image_tag 'icons/camera.png', :alt => t('shared.publisher.upload_photos').titleize, :class => 'publisher_image'
= hidden_field :location, :coords
#location_container
- #publisher-poll-creator
+ #poll_creator_container
- if publisher_public
= hidden_field_tag 'aspect_ids[]', "public"
diff --git a/app/views/publisher/_publisher_bootstrap.html.haml b/app/views/publisher/_publisher_bootstrap.html.haml
index 627f7258e..77c506702 100644
--- a/app/views/publisher/_publisher_bootstrap.html.haml
+++ b/app/views/publisher/_publisher_bootstrap.html.haml
@@ -22,16 +22,8 @@
%ul#photodropzone
.row-fluid#location_container
= hidden_field :location, :coords
- .row-fluid#poll_creator_wrapper
- #poll_question_wrapper{:class => "input-block-level"}
- %input{:id => 'poll_question', :placeholder => t('shared.publisher.poll.question'), :name => 'poll_question', :class=> "form-control"}
- .poll_answer
- %input{:class => 'form-control poll_answer_input', :placeholder => t('shared.publisher.poll.option'), :name => 'poll_answers[]'}
- .remove_poll_answer.btn.btn-link{:title => t('shared.publisher.poll.remove_poll_answer')}
- %i.entypo.trash
- #add_poll_answer_wrapper
- #add_poll_answer{:class => 'btn btn-default'}
- = t('shared.publisher.poll.add_poll_answer')
+ .row-fluid#poll_creator_container
+ -# handlebars template
.row-fluid#button_container
#publisher-images.pull-right
#poll_creator.btn.btn-link{:title => t('shared.publisher.poll.add_a_poll')}
diff --git a/features/desktop/post_with_a_poll.feature b/features/desktop/post_with_a_poll.feature
index 807ec908f..89fa8d506 100644
--- a/features/desktop/post_with_a_poll.feature
+++ b/features/desktop/post_with_a_poll.feature
@@ -9,18 +9,18 @@ Feature: posting with a poll
And I am on the home page
Scenario: expanding the publisher
- Given "#publisher-poll-creator" is hidden
+ Given "#poll_creator_container" is hidden
When I expand the publisher
Then I should see an element "#poll_creator"
Scenario: expanding the poll creator
- Given "#publisher-poll-creator" is hidden
+ Given "#poll_creator_container" is hidden
When I expand the publisher
And I press the element "#poll_creator"
- Then I should see an element "#publisher-poll-creator"
+ Then I should see an element "#poll_creator_container"
Scenario: adding option to poll
- Given "#publisher-poll-creator" is hidden
+ Given "#poll_creator_container" is hidden
When I expand the publisher
And I press the element "#poll_creator"
And I fill in values for the first two options
@@ -28,7 +28,7 @@ Feature: posting with a poll
Then I should see 3 options
Scenario: delete an option
- Given "#publisher-poll-creator" is hidden
+ Given "#poll_creator_container" is hidden
When I expand the publisher
And I press the element "#poll_creator"
And I fill in values for the first two options
@@ -89,6 +89,6 @@ Feature: posting with a poll
And I fill in the following for the options:
| normal |
| |
- And I press the element "#publisher-poll-creator"
+ And I press the element "#poll_creator_container"
And I press the element "input[type=submit]"
- Then I should see an element ".poll-answer.error"
+ Then I should see an element ".poll-answer input.error"
diff --git a/features/step_definitions/post_with_poll_steps.rb b/features/step_definitions/post_with_poll_steps.rb
index 2b3725c3c..cee8f77d3 100644
--- a/features/step_definitions/post_with_poll_steps.rb
+++ b/features/step_definitions/post_with_poll_steps.rb
@@ -1,9 +1,9 @@
Then /^I should see ([1-9]+) options?$/ do |number|
- find("#publisher-poll-creator").all(".poll-answer").count.should eql(number.to_i)
+ find("#poll_creator_container").all(".poll-answer").count.should eql(number.to_i)
end
And /^I delete the last option$/ do
- find("#publisher-poll-creator").all(".poll-answer .remove-answer").first.click
+ find("#poll_creator_container").all(".poll-answer .remove-answer").first.click
end
And /^I should not see a remove icon$/ do
@@ -36,7 +36,7 @@ When(/^I fill in values for the first two options$/) do
end
When(/^I lose focus$/) do
- find("#publisher-poll-creator").click
+ find("#poll_creator_container").click
end
Then /^I should see an element "([^"]*)"$/ do |selector|