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
b4cbc66d
Commit
b4cbc66d
authored
Feb 26, 2016
by
raeeschachar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed test_cancelling_redirects failing on Chrome
parent
46533015
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
common/test/acceptance/tests/lms/test_oauth2.py
+7
-3
No files found.
common/test/acceptance/tests/lms/test_oauth2.py
View file @
b4cbc66d
...
...
@@ -42,9 +42,13 @@ class OAuth2PermissionDelegationTests(WebAppTest):
assert
self
.
oauth_page
.
visit
()
self
.
oauth_page
.
cancel
()
# This redirects to an invalid URI.
query
=
self
.
_qs
(
self
.
browser
.
current_url
)
self
.
assertEqual
(
'access_denied'
,
query
[
'error'
])
# This redirects to an invalid URI. For chrome verify title, current_url otherwise
if
self
.
browser
.
name
==
'chrome'
:
query
=
self
.
_qs
(
self
.
browser
.
title
)
self
.
assertIn
(
'access_denied'
,
query
[
'error'
])
else
:
query
=
self
.
_qs
(
self
.
browser
.
current_url
)
self
.
assertIn
(
'access_denied'
,
query
[
'error'
])
def
test_accepting_redirects
(
self
):
"""
...
...
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