Commit b4cbc66d by raeeschachar

Fixed test_cancelling_redirects failing on Chrome

parent 46533015
......@@ -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):
"""
......
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