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
87747282
Commit
87747282
authored
Sep 22, 2016
by
Muddasser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Base url for help links is changed
parent
9aee0933
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
17 deletions
+1
-17
common/test/acceptance/tests/helpers.py
+1
-17
common/test/acceptance/tests/studio/test_studio_help.py
+0
-0
No files found.
common/test/acceptance/tests/helpers.py
View file @
87747282
...
@@ -379,19 +379,6 @@ def auto_auth(browser, username, email, staff, course_id):
...
@@ -379,19 +379,6 @@ def auto_auth(browser, username, email, staff, course_id):
AutoAuthPage
(
browser
,
username
=
username
,
email
=
email
,
course_id
=
course_id
,
staff
=
staff
)
.
visit
()
AutoAuthPage
(
browser
,
username
=
username
,
email
=
email
,
course_id
=
course_id
,
staff
=
staff
)
.
visit
()
def
get_url_with_changed_domain
(
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
assert_link
(
test
,
expected_link
,
actual_link
):
def
assert_link
(
test
,
expected_link
,
actual_link
):
"""
"""
Assert that 'href' and text inside help DOM element are correct.
Assert that 'href' and text inside help DOM element are correct.
...
@@ -414,10 +401,7 @@ def assert_opened_help_link_is_correct(test, url):
...
@@ -414,10 +401,7 @@ def assert_opened_help_link_is_correct(test, url):
"""
"""
test
.
browser
.
switch_to_window
(
test
.
browser
.
window_handles
[
-
1
])
test
.
browser
.
switch_to_window
(
test
.
browser
.
window_handles
[
-
1
])
# Assert that url in the browser is the same.
# Assert that url in the browser is the same.
# Please note that .org domain in href attribute of help anchor DOM element
test
.
assertEqual
(
url
,
test
.
browser
.
current_url
)
# is changed into .io domain. This is because browser is redirected from .org
# domain to .io domain.
test
.
assertEqual
(
get_url_with_changed_domain
(
url
),
test
.
browser
.
current_url
)
test
.
assertNotIn
(
'Maze Found'
,
test
.
browser
.
title
)
test
.
assertNotIn
(
'Maze Found'
,
test
.
browser
.
title
)
...
...
common/test/acceptance/tests/studio/test_studio_help.py
View file @
87747282
This diff is collapsed.
Click to expand it.
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