From ccaf6557a2c3fd12b558acfbdceaf93f1395a90b Mon Sep 17 00:00:00 2001 From: Michael Youngstrom <myoungstrom@edx.org> Date: Thu, 22 Mar 2018 14:10:53 -0400 Subject: [PATCH] Remove test_if_captions_are_draggable --- .../tests/video/test_video_module.py | 43 ------------------- 1 file changed, 43 deletions(-) diff --git a/common/test/acceptance/tests/video/test_video_module.py b/common/test/acceptance/tests/video/test_video_module.py index e6a589438e8..9e358182984 100644 --- a/common/test/acceptance/tests/video/test_video_module.py +++ b/common/test/acceptance/tests/video/test_video_module.py @@ -1119,49 +1119,6 @@ class YouTubeQualityTest(VideoBaseTest): self.video.wait_for(lambda: self.video.is_quality_button_active, 'waiting for quality button activation') -@attr(shard=4) -class DragAndDropTest(VideoBaseTest): - """ - Tests draggability of closed captions within videos. - """ - def test_if_captions_are_draggable(self): - """ - Loads transcripts so that closed-captioning is available. - Ensures they are draggable by checking start and dropped location. - """ - self.assets.append('subs_3_yD_cEKoCk.srt.sjson') - data = {'sub': '3_yD_cEKoCk'} - - self.metadata = self.metadata_for_mode('html5', additional_data=data) - self.navigate_to_video() - self.assertTrue(self.video.is_video_rendered('html5')) - self.video.show_closed_captions() - self.video.wait_for_closed_captions() - self.assertTrue(self.video.is_closed_captions_visible) - - action = ActionChains(self.browser) - captions = self.browser.find_element(By.CLASS_NAME, 'closed-captions') - - captions_start = captions.location - action.drag_and_drop_by_offset(captions, 0, -15).perform() - - captions_end = captions.location - # We have to branch here due to unexpected behaviour of chrome. - # Chrome sets the y offset of element to 834 instead of 650 - if self.browser.name == 'chrome': - self.assertEqual( - captions_end.get('y') - 168, - captions_start.get('y'), - 'Closed captions did not get dragged.' - ) - else: - self.assertEqual( - captions_end.get('y') + 16, - captions_start.get('y'), - 'Closed captions did not get dragged.' - ) - - @attr('a11y') class LMSVideoModuleA11yTest(VideoBaseTest): """ -- GitLab