diaspora/features/trumpeter.feature
2012-03-27 14:52:51 -07:00

37 lines
1.3 KiB
Gherkin

@javascript
Feature: Creating a new post
Background:
Given a user with username "bob"
And I sign in as "bob@bob.bob"
And I trumpet
Scenario: Posting a public message
And I write "Rectangles are awesome"
When I select "Public" in my aspects dropdown
When I press "Share"
When I go to "/stream"
Then I should see "Rectangles are awesome" as the first post in my stream
And "Rectangles are awesome" should be a public post in my stream
Scenario: Posting to Aspects
And I write "This is super skrunkle"
When I select "All Aspects" in my aspects dropdown
And I press "Share"
When I go to "/stream"
Then I should see "This is super skrunkle" as the first post in my stream
Then "This is super skrunkle" should be a limited post in my stream
Scenario: Mention a contact
Given a user named "Alice Smith" with email "alice@alice.alice"
And a user with email "bob@bob.bob" is connected with "alice@alice.alice"
And I mention "alice@alice.alice"
And I press "Share"
And I go to "/stream"
Then I follow "Alice Smith"
Scenario: Uploading a photo
When I write "check out this picture"
And I upload a fixture picture with filename "button.gif"
And I press "Share"
And I go to "/stream"
Then "check out this picture" should have my photo