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
9aee0933
Commit
9aee0933
authored
Sep 21, 2016
by
Muddasser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Addressed Comments
parent
3683ee7f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
21 deletions
+37
-21
common/test/acceptance/pages/studio/utils.py
+3
-2
common/test/acceptance/tests/studio/test_studio_help.py
+34
-19
No files found.
common/test/acceptance/pages/studio/utils.py
View file @
9aee0933
...
...
@@ -306,5 +306,6 @@ class HelpMixin(object):
else
:
element_css
=
SIDE_BAR_HELP_CSS
self
.
q
(
css
=
element_css
)
.
results
[
index
]
.
click
()
return
self
.
q
(
css
=
element_css
)
.
results
[
index
]
help_element
=
self
.
q
(
css
=
element_css
)
.
results
[
index
]
help_element
.
click
()
return
help_element
common/test/acceptance/tests/studio/test_studio_help.py
View file @
9aee0933
...
...
@@ -4,6 +4,7 @@ Test the Studio help links.
from
flaky
import
flaky
from
bok_choy.web_app_test
import
WebAppTest
from
unittest
import
skip
from
common.test.acceptance.fixtures.course
import
XBlockFixtureDesc
from
common.test.acceptance.tests.studio.base_studio_test
import
StudioCourseTest
,
ContainerBase
...
...
@@ -564,25 +565,25 @@ class CourseOutlineHelpTest(StudioCourseTest):
)
self
.
course_outline_page
.
visit
()
# This scenario depends upon TNL-5460
#
def test_course_outline_nav_help(self):
#
"""
#
Scenario: Help link in navigation bar is working on Course Outline page
#
Given that I am on the Course Outline page
#
And I want help about the process
#
And I click the 'Help' in the navigation bar
#
Then Help link should open.
#
And help url should end with 'developing_course/course_outline.html'
#
"""
#
href = 'http://edx.readthedocs.org/projects/edx-partner-course-staff' \
#
'/en/latest/developing_course/course_outline.html'
#
#
# Assert that help link is correct.
#
assert_nav_help_link(
#
test=self,
#
page=self.course_outline_page,
#
href=href
#
)
@skip
(
"This scenario depends upon TNL-5460"
)
def
test_course_outline_nav_help
(
self
):
"""
Scenario: Help link in navigation bar is working on Course Outline page
Given that I am on the Course Outline page
And I want help about the process
And I click the 'Help' in the navigation bar
Then Help link should open.
And help url should end with 'developing_course/course_outline.html'
"""
href
=
'http://edx.readthedocs.org/projects/edx-partner-course-staff'
\
'/en/latest/developing_course/course_outline.html'
# Assert that help link is correct.
assert_nav_help_link
(
test
=
self
,
page
=
self
.
course_outline_page
,
href
=
href
)
def
test_course_outline_side_bar_help
(
self
):
"""
...
...
@@ -790,6 +791,14 @@ class StudioUnitHelpTest(ContainerBase):
super
(
StudioUnitHelpTest
,
self
)
.
setUp
(
is_staff
=
is_staff
)
def
populate_course_fixture
(
self
,
course_fixture
):
"""
Populates the course fixture.
We are modifying 'advanced_modules' setting of the
course.
Also add a section with a subsection and a unit.
"""
course_fixture
.
add_advanced_settings
(
{
u"advanced_modules"
:
{
"value"
:
[
"split_test"
]}}
)
...
...
@@ -1099,6 +1108,12 @@ class GroupExperimentConfigurationHelpTest(ContainerBase):
self
.
group_configuration_page
.
visit
()
def
populate_course_fixture
(
self
,
course_fixture
):
"""
Populates the course fixture.
We are modifying 'advanced_modules' setting of the
course.
"""
course_fixture
.
add_advanced_settings
(
{
u"advanced_modules"
:
{
"value"
:
[
"split_test"
]}}
)
...
...
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