Commit 300752fc authored by Jonne Haß's avatar Jonne Haß

bump capybara

* removed wait_until where possible
* replaced wait_until with DOM obersavtions
* added match: :first to all finders that assumed getting the first element
* replaced evaluate_script with execute_script where possible
* replaced a few execute_script with DOM observations through Capybara
* removed sleep where possible
* replaced sleep with DOM obersvations
* replaced "wait for ajax" with DOM obersavations
* replaced alert confirmation with new selenium API
* bump selenium webdriver
* made any other fixes to get green again
parent cdc29e44
......@@ -160,7 +160,7 @@ group :development do
gem 'guard-rspec', '3.0.1'
gem 'rb-fsevent', '0.9.3', :require => false
gem 'rb-inotify', '0.9.0', :require => false
# Preloading environment
gem 'guard-spork', '1.5.0'
......@@ -176,9 +176,9 @@ group :test do
# Cucumber (integration tests)
gem 'capybara', '1.1.3'
gem 'capybara', '2.1.0'
gem 'database_cleaner', '1.0.1'
gem 'selenium-webdriver', '2.32.1'
gem 'selenium-webdriver', '2.33.0'
# General helpers
......
......@@ -45,13 +45,12 @@ GEM
bootstrap-sass (2.2.2.0)
sass (~> 3.2)
builder (3.0.4)
capybara (1.1.3)
capybara (2.1.0)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
selenium-webdriver (~> 2.0)
xpath (~> 0.1.4)
xpath (~> 2.0)
carrierwave (0.8.0)
activemodel (>= 3.2.0)
activesupport (>= 3.2.0)
......@@ -214,7 +213,7 @@ GEM
mobile-fu (1.2.1)
rack-mobile-detect
rails
multi_json (1.7.6)
multi_json (1.7.7)
multipart-post (1.2.0)
mysql2 (0.3.11)
nested_form (0.3.2)
......@@ -348,7 +347,7 @@ GEM
railties (~> 3.2.0)
sass (>= 3.1.10)
tilt (~> 1.3)
selenium-webdriver (2.32.1)
selenium-webdriver (2.33.0)
childprocess (>= 0.2.5)
multi_json (~> 1.0)
rubyzip
......@@ -406,7 +405,7 @@ GEM
crack (>= 0.3.2)
websocket (1.0.7)
will_paginate (3.0.4)
xpath (0.1.4)
xpath (2.0.0)
nokogiri (~> 1.3)
PLATFORMS
......@@ -419,7 +418,7 @@ DEPENDENCIES
addressable (= 2.3.4)
asset_sync (= 0.5.4)
bootstrap-sass (= 2.2.2.0)
capybara (= 1.1.3)
capybara (= 2.1.0)
carrierwave (= 0.8.0)
client_side_validations (= 3.2.5)
compass-rails (= 1.0.3)
......@@ -476,7 +475,7 @@ DEPENDENCIES
rspec-rails (= 2.13.2)
ruby-oembed (= 0.8.8)
sass-rails (= 3.2.6)
selenium-webdriver (= 2.32.1)
selenium-webdriver (= 2.33.0)
sidekiq (= 2.11.1)
sinatra (= 1.3.3)
sinon-rails (= 1.4.2.1)
......
......@@ -17,9 +17,9 @@ app.views.Aspect = app.views.Base.extend({
toggleAspect: function(evt){
if (evt) { evt.preventDefault(); };
this.model.toggleSelected();
this.$el.toggleClass('active');
this.$el.find('.icons-check_yes_ok').toggleClass('invisible')
this.model.toggleSelected();
app.router.aspects_stream();
},
......
......@@ -14,8 +14,8 @@ Feature: invitation acceptance
And I fill in the following:
| profile_first_name | O |
And I preemptively confirm the alert
And I follow "awesome_button"
And I confirm the alert
Then I should be on the stream page
Scenario: accept invitation from user
......@@ -32,8 +32,8 @@ Feature: invitation acceptance
And I fill in the following:
| profile_first_name | O |
And I preemptively confirm the alert
And I follow "awesome_button"
And I confirm the alert
Then I should be on the stream page
And I log out
And I sign in as "bob@bob.bob"
......
......@@ -5,11 +5,8 @@ Feature: The activity stream
When I sign in as "bob@bob.bob"
And I post "A- I like turtles"
And I wait for 1 second
And I post "B- barack obama is your new bicycle"
And I wait for 1 second
And I post "C- barack obama is a square"
And I wait for 1 second
When I go to the activity stream page
Then "C- barack obama is a square" should be post 1
......@@ -17,11 +14,8 @@ Feature: The activity stream
And "A- I like turtles" should be post 3
When I like the post "A- I like turtles"
And I wait for 1 second
And I comment "Sassy sawfish" on "C- barack obama is a square"
And I wait for 1 second
And I like the post "B- barack obama is your new bicycle"
And I wait for 1 second
When I go to the activity stream page
Then "B- barack obama is your new bicycle" should be post 1
......
......@@ -17,7 +17,6 @@ Feature: Viewing my activity on the steam mobile page
Scenario: Show post on my activity
When I click on selector "a.image_link.like_action.inactive"
And I wait for the ajax to finish
And I click on selector "img.my_activity"
Then I should see "My Activity"
And I should see "Hello! i am #newhere" within ".ltr"
......@@ -12,20 +12,15 @@ Feature: Blocking a user from the stream
Scenario: Blocking a user
When I am on the home page
And I preemptively confirm the alert
And I wait for the ajax to finish
When I click on the first block button
And I confirm the alert
And I am on the home page
And I wait for the ajax to finish
Then I should not see any posts in my stream
Scenario: Blocking a user from the profile page
When I am on the home page
And I follow "Alice Smith"
And I wait for the ajax to finish
And I preemptively confirm the alert
And I wait for the ajax to finish
When I click on the first block button
And I confirm the alert
And I am on the home page
And I wait for the ajax to finish
Then I should not see any posts in my stream
......@@ -9,8 +9,8 @@ Feature: Close Account
When I go to the users edit page
And I follow "Close Account"
And I put in my password in "close_account_password" in the modal window
And I preemptively confirm the alert
And I press "Close Account" in the modal window
And I confirm the alert
Then I should be on the new user session page
When I try to sign in manually
......@@ -29,8 +29,8 @@ Feature: Close Account
When I go to the users edit page
And I follow "Close Account"
And I put in my password in "close_account_password" in the modal window
And I preemptively confirm the alert
And I press "Close Account" in the modal window
And I confirm the alert
Then I sign in as "alice@alice.alice"
And I am on the home page
Then I should see "Bob Jones"
......@@ -20,7 +20,6 @@ Feature: commenting
And I fill in the following:
| text | is that a poodle? |
And I press "Comment"
And I wait for the ajax to finish
Then I should see "is that a poodle?" within ".comment"
And I should see "less than a minute ago" within ".comment time"
......@@ -32,11 +31,8 @@ Feature: commenting
And I fill in the following:
| text | is that a poodle? |
And I press "Comment"
And I wait for the ajax to finish
When I hover over the ".comment"
And I preemptively confirm the alert
And I click to delete the first comment
And I wait for the ajax to finish
And I confirm the alert
Then I should not see "is that a poodle?"
Scenario: expand the comment form in the main stream and an individual aspect stream
......@@ -59,5 +55,6 @@ Feature: commenting
When I follow "less than a minute ago"
Then I should see "Look at this dog"
And I make a show page comment "I think thats a cat"
Then I should see "less than a minute ago" within "#post-comments"
When I go to "alice@alice.alice"'s page
Then I should see "I think thats a cat"
......@@ -6,7 +6,7 @@ Feature: following and being followed
| email |
| bob@bob.bob |
| alice@alice.alice |
When I sign in as "bob@bob.bob"
And I am on "alice@alice.alice"'s page
And I add the person to my "Besties" aspect
......@@ -16,7 +16,7 @@ Feature: following and being followed
And I fill in the following:
| status_message_fake_text | I am following you |
And I press "Share"
Then I go to the destroy user session page
Then I sign out
Scenario: seeing a follower's posts on their profile page, but not in your stream
When I sign in as "alice@alice.alice"
......@@ -35,7 +35,7 @@ Feature: following and being followed
And I press the first ".toggle" within "#publisher"
And I press the first ".public" within "#publisher"
And I press "Share"
And I go to the destroy user session page
And I sign out
When I sign in as "bob@bob.bob"
And I am on "alice@alice.alice"'s page
......@@ -49,7 +49,6 @@ Feature: following and being followed
And I am on "bob@bob.bob"'s page
And I add the person to my "Besties" aspect
And I wait for the ajax to finish
And I add the person to my "Unicorns" aspect
When I go to the home page
......@@ -59,7 +58,7 @@ Feature: following and being followed
When I am on the home page
And I post "I am following you back"
Then I go to the destroy user session page
Then I sign out
When I sign in as "bob@bob.bob"
Then I should have 1 contacts in "Besties"
......@@ -73,15 +72,13 @@ Feature: following and being followed
And I press the first ".toggle.button"
And I press the first "a" within ".add_aspect"
And I wait for the ajax to finish
And I fill in "Name" with "Super People" in the modal window
And I press "Create" in the modal window
And I wait for the ajax to finish
When I go to the home page
Then I should have 1 contact in "Super People"
Then I go to the destroy user session page
Then I sign out
When I sign in as "bob@bob.bob"
Then I should have 1 contact in "Besties"
......@@ -90,7 +87,7 @@ Feature: following and being followed
When I sign in as "bob@bob.bob"
And I am on "alice@alice.alice"'s page
Then I should see "Besties" and "Mention"
Then I should see "Besties" and "Mention"
Then I should not see "Message" within "#profile"
Scenario: interacting with the profile page of someone who follows you but who you do not follow
......@@ -105,9 +102,7 @@ Feature: following and being followed
And I am on "bob@bob.bob"'s page
When I add the person to my "Besties" aspect
And I wait for the ajax to finish
And I add the person to my "Unicorns" aspect
And I wait for the ajax to finish
When I go to "bob@bob.bob"'s page
Then I should see "All Aspects" and "Mention" and "Message"
......@@ -8,4 +8,4 @@ Feature: Download Photos
And I follow "settings"
Then I should be on my account settings page
And I follow "download my photos"
Then I should get download alert
Then I confirm the alert
......@@ -40,9 +40,8 @@ Feature: editing your profile
And I should see "#starwars" within "ul#as-selections-tags"
When I attach the file "spec/fixtures/bad_urls.txt" to "file" within "#file-upload"
And I preemptively confirm the alert
And I attach the file "spec/fixtures/button.png" to hidden element "file" within "#file-upload"
And I wait for the ajax to finish
And I confirm the alert
And I attach the file "spec/fixtures/button.png" to hidden "file" within "#file-upload"
Then I should see a "img" within "#profile_photo_upload"
When I go to my new profile page
......
......@@ -11,7 +11,7 @@ Feature: editing the profile in the mobile view
| profile_last_name | Fett |
| profile_bio | This is a bio |
| profile_location | Kamino |
And I select "1986" from "profile_date_year"
And I select "30" from "profile_date_day"
And I select "November" from "profile_date_month"
......@@ -35,16 +35,15 @@ Feature: editing the profile in the mobile view
When I fill in "profile[tag_string]" with "#kamino"
And I press the first ".as-result-item" within ".as-results"
And I press "Update Profile"
Then I should see "#kamino" within "ul#as-selections-tags"
And I should see "#starwars" within "ul#as-selections-tags"
When I attach the file "spec/fixtures/bad_urls.txt" to "file" within "#file-upload"
And I preemptively confirm the alert
And I attach the file "spec/fixtures/button.png" to hidden element "file" within "#file-upload"
And I wait for the ajax to finish
And I confirm the alert
And I attach the file "spec/fixtures/button.png" to hidden "file" within "#file-upload"
Then I should see a "img" within "#profile_photo_upload"
When I go to my new profile page
And I should see "Boba Fett"
......@@ -6,17 +6,16 @@ Feature: posting
Background:
Given following users exist:
| username |
| username |
| bob |
| alice |
When I sign in as "bob@bob.bob"
And I post a status with the text "I am da #boss"
When I go to the destroy user session page
When I sign out
And I sign in as "alice@alice.alice"
And I search for "#boss"
And I press "Follow #boss"
And I wait for the ajax to finish
Scenario: can post a message from the tag page
Then I should see "#boss" within "#publisher"
......@@ -42,8 +41,7 @@ Feature: posting
Scenario: can stop following a tag from the homepage
When I go to the followed tags stream page
And I preemptively confirm the alert
And I hover over the "li.unfollow#tag-following-boss"
And I follow "unfollow_boss"
And I wait for the ajax to finish
And I confirm the alert
Then I should not see "#tag-following-boss" within ".left_nav"
......@@ -14,9 +14,8 @@ Feature: editing the gettig started in the mobile view
And I should see "amparito"
When I attach the file "spec/fixtures/bad_urls.txt" to "file" within "#file-upload"
And I preemptively confirm the alert
And I attach the file "spec/fixtures/button.png" to hidden element "file" within "#file-upload"
And I wait for the ajax to finish
And I confirm the alert
And I attach the file "spec/fixtures/button.png" to hidden "file" within "#file-upload"
Then I should see a "img" within "#profile_photo_upload"
When I fill in "follow_tags" with "#men"
......
......@@ -10,7 +10,6 @@ Feature: Keyboard navigation
Scenario: navigate downwards
When I am on the home page
When I wait for the ajax to finish
And I press the "J" key somewhere
Then post 1 should be highlighted
And I should have navigated to the highlighted post
......@@ -18,22 +17,20 @@ Feature: Keyboard navigation
When I press the "J" key somewhere
Then post 2 should be highlighted
And I should have navigated to the highlighted post
Given I expand the publisher
When I press the "J" key in the publisher
Then post 2 should be highlighted
Scenario: navigate upwards
When I am on the home page
When I wait for the ajax to finish
And I scroll to post 3
When I press the "K" key somewhere
Then post 2 should be highlighted
And I should have navigated to the highlighted post
Scenario: expand the comment form in the main stream
When I am on the home page
When I wait for the ajax to finish
Then the first comment field should be closed
When I press the "J" key somewhere
And I press the "C" key somewhere
......
......@@ -26,9 +26,8 @@ Feature: User manages contacts
When I am on the contacts page
And I follow "People"
And I follow "add contacts to People"
And I wait for the ajax to finish
And I preemptively confirm the alert
And I press "Delete" in the modal window
And I confirm the alert
Then I should be on the contacts page
And I should not see "People" within "#aspect_nav"
......@@ -37,9 +36,8 @@ Feature: User manages contacts
And I have an aspect called "People"
When I am on the aspects page
And I click on "People" aspect edit icon
And I wait for the ajax to finish
And I preemptively confirm the alert
And I press "Delete" in the modal window
And I confirm the alert
Then I should be on the aspects page
And I should not see "People" within "#aspect_nav"
......@@ -50,13 +48,10 @@ Feature: User manages contacts
When I am on the contacts page
And I follow "Cat People"
And I follow "add contacts to Cat People"
And I wait for the ajax to finish
And I press the first ".contact_list .button"
And I wait for the ajax to finish
And I check the first contact list button
Then I should have 1 contact in "Cat People"
When I press the first ".contact_list .button"
And I wait for the ajax to finish
When I uncheck the first contact list button
Then I should have 0 contacts in "Cat People"
Scenario: infinite scroll on contacts index
......
......@@ -29,7 +29,6 @@ Feature: Mentions
| status_message_fake_text | @Bo |
And I click on the first user in the mentions dropdown list
And I press "Share"
And I wait for the ajax to finish
And I follow "Bob Jones"
Then I should see "Bob Jones"
......
......@@ -27,15 +27,12 @@ Feature: mentioning a contact from their profile page
And I want to mention her from the profile
And I append "I am eating a yogurt" to the publisher
And I press "Share" in the modal window
And I wait for the ajax to finish
When I am on the aspects page
And I follow "PostingTo" within "#aspect_nav"
And I wait for the ajax to finish
Then I should see "I am eating a yogurt"
When I am on the aspects page
And I follow "NotPostingThingsHere" within "#aspect_nav"
And I wait for the ajax to finish
Then I should see "I am eating a yogurt"
Scenario: mentioning while posting to just one aspect
......@@ -45,7 +42,6 @@ Feature: mentioning a contact from their profile page
And I append "I am eating a yogurt" to the publisher
And I press the aspect dropdown in the modal window
And I toggle the aspect "NotPostingThingsHere" in the modal window
And I wait for the ajax to finish
And I press "Share" in the modal window
When I am on the aspects page
......
......@@ -11,21 +11,16 @@ Feature: viewing photos on the mobile main page
And I click on selector "img.compose_icon"
Scenario: view full size image
Given I attach the file "spec/fixtures/button.png" to hidden element "file" within "#file-upload-publisher"
And I wait for the ajax to finish
Given I attach the file "spec/fixtures/button.png" to hidden "file" within "#file-upload-publisher"
When I press "Share"
And I wait for the ajax to finish
And I click on selector "img.stream-photo"
Then I should see a "img" within "#show_content"
And I should not see a "#right" within ".row"
Scenario: view multiphoto post
Given I attach the file "spec/fixtures/button.png" to hidden element "file" within "#file-upload-publisher"
And I wait for the ajax to finish
And I attach the file "spec/fixtures/button.gif" to hidden element "file" within "#file-upload-publisher"
And I wait for the ajax to finish
Given I attach the file "spec/fixtures/button.png" to hidden "file" within "#file-upload-publisher"
And I attach the file "spec/fixtures/button.gif" to hidden "file" within "#file-upload-publisher"
When I press "Share"
And I wait for the ajax to finish
And I should see "+ 1" within ".additional_photo_count"
And I click on selector "img.stream-photo"
Then I should see a "#right" within "tbody"
......
......@@ -3,7 +3,7 @@ Feature: Not safe for work
Scenario: Setting not safe for work
Given following users exist:
| username | email |
| username | email |
| pr0n king | tommy@pr0n.xxx |
And I sign in as "tommy@pr0n.xxx"
When I go to the edit profile page
......@@ -49,12 +49,8 @@ Scenario: Resharing an nsfw post
And "tommy@pr0nking.com" has a public post with text "Sexy Senators Gone Wild!"
And I sign in as "laura@officeworkers.com"
And I toggle nsfw posts
And I preemptively confirm the alert
And I follow "Reshare"
And I wait for 2 seconds
And I wait for the ajax to finish
And I confirm the alert
And I go to the home page
#if this is failing on travis throw a random wait in here :/
And I wait for the ajax to finish
Then I should not see "Sexy Senators Gone Wild!"
And I should have 2 nsfw posts
......@@ -9,15 +9,14 @@ Feature: Notifications
| email |
| bob@bob.bob |
| alice@alice.alice |
Scenario: someone shares with me
When I sign in as "bob@bob.bob"
And I am on "alice@alice.alice"'s page
And I add the person to my "Besties" aspect
And I go to the destroy user session page
And I sign out
When I sign in as "alice@alice.alice"
And I follow "Notifications" in the header
And I wait for the ajax to finish
Then the notification dropdown should be visible
Then I should see "started sharing with you"
And I go to the notifications page
......@@ -29,15 +28,12 @@ Feature: Notifications
And "alice@alice.alice" has a public post with text "check this out!"
When I sign in as "bob@bob.bob"
And I am on "alice@alice.alice"'s page
And I preemptively confirm the alert
And I follow "Reshare"
And I wait for the ajax to finish
And I go to the destroy user session page
And I confirm the alert
And I sign out
When I sign in as "alice@alice.alice"
And I follow "Notifications" in the header
#And I wait for the ajax to finish
Then the notification dropdown should be visible
#And I wait for the ajax to finish
Then I should see "reshared your post"
And I should have 1 email delivery
......@@ -46,15 +42,11 @@ Feature: Notifications
And "alice@alice.alice" has a public post with text "check this out!"
When I sign in as "bob@bob.bob"
And I am on "alice@alice.alice"'s page
And I preemptively confirm the alert
And I follow "Like"
And I wait for the ajax to finish
And I go to the destroy user session page
And I sign out
When I sign in as "alice@alice.alice"
And I follow "Notifications" in the header
And I wait for the ajax to finish
Then the notification dropdown should be visible
And I wait for the ajax to finish
Then I should see "liked your post"
And I should have 1 email delivery
......@@ -67,8 +59,8 @@ Feature: Notifications
And I fill in the following:
| text | great post! |
And I press "Comment"
And I wait for the ajax to finish
And I go to the destroy user session page
Then I should see "less than a minute ago" within ".comment"
And I sign out
When I sign in as "alice@alice.alice"
And I follow "Notifications" in the header
Then the notification dropdown should be visible
......@@ -80,8 +72,6 @@ Feature: Notifications
And Alice has a post mentioning Bob
When I sign in as "bob@bob.bob"
And I follow "Notifications" in the header
And I wait for the ajax to finish
Then the notification dropdown should be visible
And I wait for the ajax to finish
Then I should see "mentioned you in a post"
And I should have 1 email delivery
......@@ -6,7 +6,7 @@ Feature: oembed
Background:
Given following user exists:
| username | email |
| username | email |
| Alice Smith | alice@alice.alice |
And I have several oEmbed data in cache
When I sign in as "alice@alice.alice"
......@@ -17,18 +17,13 @@ Feature: oembed
When I fill in the following:
| status_message_fake_text | http://youtube.com/watch?v=M3r2XDceM6A&format=json |
And I press "Share"
And I wait for the ajax to finish
And I follow "My Aspects"
Then I should see a video player
And I should see a ".oembed" within ".post-content"
And I should see a "img" within ".oembed"
Scenario: Post an unsecure video link
Given I expand the publisher
When I fill in the following:
| status_message_fake_text | http://mytube.com/watch?v=M3r2XDceM6A&format=json |
And I press "Share"
And I wait for the ajax to finish
And I follow "My Aspects"
Then I should not see a video player
And I should see "http://mytube.com/watch?v=M3r2XDceM6A&format=json"
......
......@@ -8,11 +8,10 @@ Feature: viewing the photo lightbox
And I am on the home page
Given I expand the publisher
And I attach the file "spec/fixtures/button.png" to hidden element "file" within "#file-upload"
And I attach the file "spec/fixtures/button.png" to hidden "file" within "#file-upload"
And I fill in the following:
| status_message_fake_text | Look at this dog |
And I press "Share"
And I wait for the ajax to finish
Scenario: viewing a photo
Then I should see an image attached to the post
......
......@@ -21,36 +21,35 @@ Feature: preview posts in the stream
And I press "Preview"
Then "I am eating yogurt" should be post 1
And the first post should be a preview
When I fill in the following:
| status_message_fake_text | This preview rocks |
And I press "Preview"
Then "This preview rocks" should be post 1
And I should not see "I am eating a yogurt"
When I fill in the following:
| status_message_fake_text | I like rocks |
And I press "Share"
And I wait for the ajax to finish
Then "I like rocks" should be post 1
And I should not see "This preview rocks"
Scenario: preview a photo with text
Given I expand the publisher
When I attach the file "spec/fixtures/button.png" to hidden element "file" within "#file-upload"
When I attach the file "spec/fixtures/button.png" to hidden "file" within "#file-upload"
When I fill in the following:
| status_message_fake_text | Look at this dog |
And I press "Preview"
Then I should see a "img" within ".stream_element div.photo_attachments"
And I should see "Look at this dog" within ".stream_element"
Scenario: preview a post with mentions
Given I expand the publisher
And I mention Alice in the publisher
And I press "Preview"
And I follow "Alice Smith"
Then I should see "Alice Smith"
Scenario: preview a post on tag page
Given there is a user "Samuel Beckett" who's tagged "#rockstar"
When I search for "#rockstar"
......
......@@ -23,7 +23,6 @@ Feature: posting from the main page
When I fill in the following:
| status_message_fake_text | I am eating yogurt |
And I press "Share"
And I wait for the ajax to finish
And I go to the aspects page
Then "I am eating yogurt" should be post 1
......@@ -33,13 +32,11 @@ Feature: posting from the main page
When I fill in the following:
| status_message_fake_text | The World needs more Cats. |
And I press "Share"
And I wait for the ajax to finish
Given I expand the publisher
When I fill in the following:
| status_message_fake_text | The World needs more Cats. |
And I press "Share"
And I wait for the ajax to finish
And I go to the aspects page
Then "The World needs more Cats." should be post 1
......@@ -47,7 +44,6 @@ Feature: posting from the main page
Scenario: posting a message appends it to the top of the stream
When I click the publisher and post "sup dog"
And I wait for 1 second
And I click the publisher and post "hello there"
Then I should see "hello there" as the first post in my stream
......@@ -56,9 +52,8 @@ Feature: posting from the main page
And I expand the publisher
And I fill in the following:
| status_message_fake_text | 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 only "PostingTo" aspect
......@@ -70,11 +65,10 @@ Feature: posting from the main page
Scenario: post a photo with text
Given I expand the publisher
When I attach the file "spec/fixtures/button.png" to hidden element "file" within "#file-upload"
When I attach the file "spec/fixtures/button.png" to hidden "file" within "#file-upload"
When I fill in the following:
| status_message_fake_text | Look at this dog |
And I press "Share"
And I wait for the ajax to finish
And I go to the aspects page
Then I should see a "img" within ".stream_element div.photo_attachments"
And I should see "Look at this dog" within ".stream_element"
......@@ -86,11 +80,9 @@ Feature: posting from the main page
Scenario: post a photo without text