test_oauth_authorize.py 591 B

12345678910111213141516
  1. from sentry.testutils import AcceptanceTestCase
  2. class OAuthAuthorizeTest(AcceptanceTestCase):
  3. def setUp(self):
  4. super().setUp()
  5. self.user = self.create_user("foo@example.com", is_superuser=True)
  6. self.login_as(self.user)
  7. def test_simple(self):
  8. self.browser.get("/debug/oauth/authorize/")
  9. self.browser.wait_until_not(".loading")
  10. self.browser.snapshot("oauth - authorize")
  11. self.browser.get("/debug/oauth/authorize/error/")
  12. self.browser.wait_until_not(".loading")
  13. self.browser.snapshot("oauth - authorize error")