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
4df63b2b
Commit
4df63b2b
authored
Mar 18, 2017
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No need to switch .org -> .io, just use the right URL to begin with
parent
f7b08b16
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
15 deletions
+5
-15
common/test/acceptance/tests/lms/test_lms_help.py
+3
-13
lms/templates/instructor/instructor_dashboard_2/cohort-group-header.underscore
+2
-2
No files found.
common/test/acceptance/tests/lms/test_lms_help.py
View file @
4df63b2b
...
...
@@ -28,16 +28,6 @@ class TestCohortHelp(ContainerBase):
self
.
instructor_dashboard_page
.
visit
()
self
.
cohort_management
=
self
.
instructor_dashboard_page
.
select_cohort_management
()
def
get_url_with_changed_domain
(
self
,
url
):
"""
Replaces .org with .io in the url
Arguments:
url (str): The url to perform replace operation on.
Returns:
str: The updated url
"""
return
url
.
replace
(
'.org/'
,
'.io/'
)
def
verify_help_link
(
self
,
href
):
"""
Verifies that help link is correct
...
...
@@ -51,7 +41,7 @@ class TestCohortHelp(ContainerBase):
actual_link
=
self
.
cohort_management
.
get_cohort_help_element_and_click_help
()
assert_link
(
self
,
expected_link
,
actual_link
)
assert_opened_help_link_is_correct
(
self
,
self
.
get_url_with_changed_domain
(
href
)
)
assert_opened_help_link_is_correct
(
self
,
href
)
def
test_manual_cohort_help
(
self
):
"""
...
...
@@ -68,7 +58,7 @@ class TestCohortHelp(ContainerBase):
self
.
cohort_management
.
add_cohort
(
'cohort_name'
)
href
=
(
'http://edx.readthedocs.
org
/projects/edx-partner-course-staff/en/{}/'
'http://edx.readthedocs.
io
/projects/edx-partner-course-staff/en/{}/'
'course_features/cohorts/cohort_config.html#assign-learners-to-cohorts-manually'
)
.
format
(
doc_version
())
...
...
@@ -90,7 +80,7 @@ class TestCohortHelp(ContainerBase):
self
.
cohort_management
.
add_cohort
(
'cohort_name'
,
assignment_type
=
'random'
)
href
=
(
'http://edx.readthedocs.
org
/projects/edx-partner-course-staff/en/{}/'
'http://edx.readthedocs.
io
/projects/edx-partner-course-staff/en/{}/'
'course_features/cohorts/cohorts_overview.html#all-automated-assignment'
)
.
format
(
doc_version
())
...
...
lms/templates/instructor/instructor_dashboard_2/cohort-group-header.underscore
View file @
4df63b2b
...
...
@@ -12,10 +12,10 @@
<div class="setup-value">
<% if (cohort.get('assignment_type') == "manual") { %>
<%- gettext("Learners are added to this cohort only when you provide their email addresses or usernames on this page.") %>
<a href="http://edx.readthedocs.
org
/projects/edx-partner-course-staff/en/latest/course_features/cohorts/cohort_config.html#assign-learners-to-cohorts-manually" class="incontext-help action-secondary action-help" target="_blank"><%- gettext("What does this mean?") %></a>
<a href="http://edx.readthedocs.
io
/projects/edx-partner-course-staff/en/latest/course_features/cohorts/cohort_config.html#assign-learners-to-cohorts-manually" class="incontext-help action-secondary action-help" target="_blank"><%- gettext("What does this mean?") %></a>
<% } else { %>
<%- gettext("Learners are added to this cohort automatically.") %>
<a href="http://edx.readthedocs.
org
/projects/edx-partner-course-staff/en/latest/course_features/cohorts/cohorts_overview.html#all-automated-assignment" class="incontext-help action-secondary action-help" target="_blank"><%- gettext("What does this mean?") %></a>
<a href="http://edx.readthedocs.
io
/projects/edx-partner-course-staff/en/latest/course_features/cohorts/cohorts_overview.html#all-automated-assignment" class="incontext-help action-secondary action-help" target="_blank"><%- gettext("What does this mean?") %></a>
<% } %>
</div>
</div>
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