test_organization_document_integration_detailed_view.py 849 B

123456789101112131415161718192021222324
  1. from __future__ import absolute_import
  2. from sentry.testutils import AcceptanceTestCase
  3. class OrganizationDocumentIntegrationDetailView(AcceptanceTestCase):
  4. """
  5. As a developer, I can view an document-based integration, and learn more about it with the linked resources.
  6. """
  7. def setUp(self):
  8. super(OrganizationDocumentIntegrationDetailView, self).setUp()
  9. self.login_as(self.user)
  10. def load_page(self, slug):
  11. url = u"/settings/{}/document-integrations/{}/".format(self.organization.slug, slug)
  12. self.browser.get(url)
  13. self.browser.wait_until_not(".loading-indicator")
  14. def test_view_datadog(self):
  15. self.load_page("datadog")
  16. self.browser.snapshot("integrations - document-based detail overview")
  17. assert self.browser.element_exists('[data-test-id="learn-more"]')