diff --git a/features/posts.feature b/features/posts.feature new file mode 100644 index 000000000..2cb6e9220 --- /dev/null +++ b/features/posts.feature @@ -0,0 +1,32 @@ +Feature: posting + In order to enlighten humanity for the good of society + As a rock star + I want to tell the world I am eating a yogurt + + Scenario: post to all aspects + Given I am signed in + And I have an aspect called "Family" + And I am on the home page + When I click share across aspects + And I fill in "status_message_message" with "I am eating a yogurt" + And I press "Share" + + And I follow "Family" + Then I should see "I am eating a yogurt" + + Scenario Outline: post to one aspect + Given I am signed in + And I have an aspect called "PostTo" + And I have an aspect called "DidntPostTo" + And I am on the home page + When I follow "PostTo" + And I fill in "status_message_message" with "I am eating a yogurt" + And I press "Share" + + And I follow "" + Then I should "I am eating a yogurt" + + Examples: + | aspect | see | + | PostTo | see | + | DidntPostTo | not see | diff --git a/features/step_definitions/posts_steps.rb b/features/step_definitions/posts_steps.rb new file mode 100644 index 000000000..78e932678 --- /dev/null +++ b/features/step_definitions/posts_steps.rb @@ -0,0 +1,3 @@ +When /^I click share across aspects$/ do + find("#content_creation_button").click +end