Commit f09e9f02 by raeeschachar

Merge pull request #11672 from edx/raees/chrome-bokchoy-test-cancelling-redirects

Fixed test_cancelling_redirects failing on Chrome
parents 953014cf b4cbc66d
...@@ -42,9 +42,13 @@ class OAuth2PermissionDelegationTests(WebAppTest): ...@@ -42,9 +42,13 @@ class OAuth2PermissionDelegationTests(WebAppTest):
assert self.oauth_page.visit() assert self.oauth_page.visit()
self.oauth_page.cancel() self.oauth_page.cancel()
# This redirects to an invalid URI. # This redirects to an invalid URI. For chrome verify title, current_url otherwise
query = self._qs(self.browser.current_url) if self.browser.name == 'chrome':
self.assertEqual('access_denied', query['error']) 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): def test_accepting_redirects(self):
""" """
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment