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
f3173c78
Commit
f3173c78
authored
Aug 01, 2014
by
Daniel Friedman
Committed by
cahrens
Aug 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't use `click_css` in `add_unit`.
parent
ef9cf87b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
common/test/acceptance/pages/studio/overview.py
+4
-3
No files found.
common/test/acceptance/pages/studio/overview.py
View file @
f3173c78
...
...
@@ -129,6 +129,7 @@ class CourseOutlineContainer(CourseOutlineItem):
CHILD_CLASS must be a :class:`CourseOutlineChild` subclass.
"""
CHILD_CLASS
=
None
ADD_BUTTON_SELECTOR
=
'> .outline-content > .add-item a.button-new'
def
child
(
self
,
title
,
child_class
=
None
):
"""
...
...
@@ -171,7 +172,7 @@ class CourseOutlineContainer(CourseOutlineItem):
"""
click_css
(
self
,
self
.
_bounded_selector
(
".add-item a.button-new"
),
self
.
_bounded_selector
(
self
.
ADD_BUTTON_SELECTOR
),
require_notification
=
require_notification
,
)
...
...
@@ -183,7 +184,7 @@ class CourseOutlineContainer(CourseOutlineItem):
self
.
browser
.
execute_script
(
"jQuery.fx.off = true;"
)
def
subsection_expanded
():
add_button
=
self
.
q
(
css
=
self
.
_bounded_selector
(
'> .outline-content > .add-item a.button-new'
))
.
first
.
results
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
()
...
...
@@ -276,7 +277,7 @@ class CourseOutlineSubsection(CourseOutlineChild, CourseOutlineContainer):
"""
Adds a unit to this subsection
"""
self
.
add_child
(
require_notification
=
False
)
self
.
q
(
css
=
self
.
_bounded_selector
(
self
.
ADD_BUTTON_SELECTOR
))
.
click
(
)
class
CourseOutlineSection
(
CourseOutlineChild
,
CourseOutlineContainer
):
...
...
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