test_oauth_authorize.py 675 B

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