Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
d670f8c4
Commit
d670f8c4
authored
Apr 27, 2016
by
Muddasser
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12257 from edx/muddasser/bokchoy/chrome/test_if_captions_are_draggable
branch out at assert based on chrome and firefox
parents
1220a0a9
99cbf18e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
common/test/acceptance/tests/video/test_video_module.py
+15
-5
No files found.
common/test/acceptance/tests/video/test_video_module.py
View file @
d670f8c4
...
@@ -1220,12 +1220,22 @@ class DragAndDropTest(VideoBaseTest):
...
@@ -1220,12 +1220,22 @@ class DragAndDropTest(VideoBaseTest):
captions_start
=
captions
.
location
captions_start
=
captions
.
location
action
.
drag_and_drop_by_offset
(
captions
,
0
,
-
15
)
.
perform
()
action
.
drag_and_drop_by_offset
(
captions
,
0
,
-
15
)
.
perform
()
captions_end
=
captions
.
location
captions_end
=
captions
.
location
self
.
assertEqual
(
# We have to branch here due to unexpected behaviour of chrome.
captions_end
.
get
(
'y'
)
+
15
,
# Chrome sets the y offset of element to 834 instead of 650
captions_start
.
get
(
'y'
),
if
self
.
browser
.
name
==
'chrome'
:
'Closed captions did not get dragged.'
self
.
assertEqual
(
)
captions_end
.
get
(
'y'
)
-
168
,
captions_start
.
get
(
'y'
),
'Closed captions did not get dragged.'
)
else
:
self
.
assertEqual
(
captions_end
.
get
(
'y'
)
+
15
,
captions_start
.
get
(
'y'
),
'Closed captions did not get dragged.'
)
@attr
(
'a11y'
)
@attr
(
'a11y'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment