Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

updates for some search test cases

  • Loading branch information...
commit 2d7e664654ac190e9379ff4f64b6339f785d5bcb 1 parent beb1ed7
Janet authored
View
4 apps/webdriver_testing/check_teams/test_videos.py
@@ -120,7 +120,7 @@ def test_search__updated_title(self):
data_helpers.put_api_request(self, url_part, new_data)
#Update the solr index
- management.call_command('rebuild_index', interactive=False)
+ management.call_command('update_index', interactive=False)
#Open team videos page and search for updated title text.
self.videos_tab.open_videos_tab(self.team.slug)
@@ -147,7 +147,7 @@ def test_search__updated_description(self):
data_helpers.put_api_request(self, url_part, new_data)
#Update the solr index
- management.call_command('rebuild_index', interactive=False)
+ management.call_command('update_index', interactive=False)
#Open team videos page and search for updated title text.
self.videos_tab.open_videos_tab(self.team.slug)
View
8 apps/webdriver_testing/check_watch_page.py
@@ -30,7 +30,7 @@ def setUp(self):
video_url = "http://www.youtube.com/watch?v=WqJineyEszo")
data_helpers.create_videos_with_fake_subs(self,
'apps/webdriver_testing/subtitle_data/fake_subs.json')
- management.call_command('rebuild_index', interactive=False)
+ management.call_command('update_index', interactive=False)
@@ -57,7 +57,7 @@ def test_search__subs_nonascii(self):
test_video = data_helpers.create_video_with_subs(self,
video_url = "http://unisubs.example.com/test_nonascii.mp4", data = data)
- management.call_command('rebuild_index', interactive=False)
+ management.call_command('update_index', interactive=False)
#Search for: chinese chars by opening entering the text via javascript
#because webdriver can't type those characters.
@@ -70,7 +70,7 @@ def test_search__title_nonascii(self):
"""
video = VideoFactory(title = u'不过这四个问题')
- management.call_command('rebuild_index', interactive=False)
+ management.call_command('update_index', interactive=False)
#Search for: chinese chars by opening entering the text via javascript
#because webdriver can't type those characters.
@@ -167,7 +167,7 @@ def setUp(self):
'apps/webdriver_testing/subtitle_data/fake_subs.json')
#Make sure the search cache is clear of old junk.
- management.call_command('rebuild_index', interactive=False)
+ management.call_command('update_index', interactive=False)
self.expected_videos = [ 'original ar with en complete subs',
'original english with incomplete pt',
View
2  apps/webdriver_testing/pages/site_pages/search_results_page.py
@@ -24,7 +24,7 @@ class SearchResultsPage(VideoListings):
_FIRST_SEARCH_RESULT = "ul.video_list li a"
def search_has_no_results(self):
- time.sleep(3)
+ time.sleep(5)
self.wait_for_element_not_visible(self._SEARCHING_INDICATOR)
if self.is_text_present(self._NO_RESULTS, "No videos found ..."):
return True
View
2  dev_settings_selenium.py
@@ -80,7 +80,7 @@
'--nocapture',
#'--collect-only',
'--nologcapture',
- '--logging-filter=-pysolr, -base, remote_connection',
+ '--logging-filter=remote_connection',
'--verbosity=2'
]

0 comments on commit 2d7e664

Please sign in to comment.
Something went wrong with that request. Please try again.