Skip to content
This repository has been archived by the owner on Mar 8, 2018. It is now read-only.

Commit

Permalink
Remove inconsistent image indexing test
Browse files Browse the repository at this point in the history
This test fails more often than it passes due to elasticsearch's refresh
taking longer than the next request does.

In the future this can potentially be added back in as a faster test
using javascript with mocha/supertest when we have access to
elasticsearch so we can force a refresh.
  • Loading branch information
chrismytton committed Apr 22, 2014
1 parent a0df569 commit 79e271e
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions tests/browser_based/photos.rb
Expand Up @@ -67,21 +67,4 @@ def check_upload_photo(opts)
}
end

def test_adding_images_indexes_in_api
goto_instance 'test'
delete_instance_database
load_test_fixture
goto '/'
login_as :owner

goto '/persons/barack-obama'
@b.link(:text => '+ add a photograph').click
@b.text_field(:id, 'image_url').set('http://example.org/barak.jpg')
@b.input(:type => 'submit').click
assert @b.ul(:class => 'photos').li.img.present?

goto '/api/v0.1/search/persons?q=barack-obama'
assert @b.text.include?('http://example.org/barak.jpg')
end

end

0 comments on commit 79e271e

Please sign in to comment.