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
2b731b70
Commit
2b731b70
authored
Jan 13, 2016
by
Ben Patterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix flaky condition only appearing in newer firefox versions.
parent
9cf16cd2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
common/test/acceptance/pages/studio/overview.py
+7
-1
No files found.
common/test/acceptance/pages/studio/overview.py
View file @
2b731b70
...
...
@@ -6,6 +6,7 @@ import datetime
from
bok_choy.page_object
import
PageObject
from
bok_choy.promise
import
EmptyPromise
from
selenium.webdriver
import
ActionChains
from
selenium.webdriver.support.ui
import
Select
from
selenium.webdriver.common.keys
import
Keys
...
...
@@ -254,12 +255,17 @@ class CourseOutlineContainer(CourseOutlineItem):
"""
Returns whether or not this subsection is expanded.
"""
self
.
wait_for_element_presence
(
self
.
_bounded_selector
(
self
.
ADD_BUTTON_SELECTOR
),
'Toggle control is present'
)
add_button
=
self
.
q
(
css
=
self
.
_bounded_selector
(
self
.
ADD_BUTTON_SELECTOR
))
.
first
.
results
return
add_button
and
add_button
[
0
]
.
is_displayed
()
currently_expanded
=
subsection_expanded
()
self
.
q
(
css
=
self
.
_bounded_selector
(
'.ui-toggle-expansion i'
))
.
first
.
click
()
# Need to click slightly off-center in order for the click to be recognized.
ele
=
self
.
browser
.
find_element_by_css_selector
(
self
.
_bounded_selector
(
'.ui-toggle-expansion i'
))
ActionChains
(
self
.
browser
)
.
move_to_element_with_offset
(
ele
,
1
,
1
)
.
click
()
.
perform
()
self
.
wait_for_element_presence
(
self
.
_bounded_selector
(
self
.
ADD_BUTTON_SELECTOR
),
'Subsection is expanded'
)
EmptyPromise
(
...
...
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