diff --git a/features/comments.feature b/features/comments.feature index fa73d5fca..1441fddf1 100644 --- a/features/comments.feature +++ b/features/comments.feature @@ -62,7 +62,7 @@ Feature: commenting When I focus the comment field Then the first comment field should be open - When I select "Besties" aspect + When I select only "Besties" aspect Then I should see "Look at this dog" Then the first comment field should be closed When I focus the comment field diff --git a/features/posts_from_main_page.feature b/features/posts_from_main_page.feature index 7a8ba929b..1395f7531 100644 --- a/features/posts_from_main_page.feature +++ b/features/posts_from_main_page.feature @@ -26,18 +26,18 @@ Feature: posting from the main page Then I should see "I am eating a yogurt" within ".stream_element" Scenario: post a text-only message to just one aspect - When I select "PostingTo" aspect + When I select only "PostingTo" aspect And I expand the publisher And I fill in "status_message_fake_text" with "I am eating a yogurt" And I press "Share" And I wait for the ajax to finish When I am on the aspects page - And I select "PostingTo" aspect + And I select only "PostingTo" aspect Then I should see "I am eating a yogurt" When I am on the aspects page - And I select "NotPostingThingsHere" aspect + And I select only "NotPostingThingsHere" aspect Then I should not see "I am eating a yogurt" Scenario: post a photo with text diff --git a/features/step_definitions/aspects_steps.rb b/features/step_definitions/aspects_steps.rb index 3f6505f27..9c0bc66c0 100644 --- a/features/step_definitions/aspects_steps.rb +++ b/features/step_definitions/aspects_steps.rb @@ -5,7 +5,7 @@ When /^I click on "([^"]*)" aspect edit icon$/ do |aspect_name| end end -When /^I select "([^"]*)" aspect$/ do |aspect_name| +When /^I select only "([^"]*)" aspect$/ do |aspect_name| within('#aspect_nav') do click_link 'Deselect all' click_link aspect_name