test_organization_document_integration_detailed_view.py 991 B

12345678910111213141516171819202122232425
  1. from sentry.testutils import AcceptanceTestCase
  2. class OrganizationDocumentIntegrationDetailView(AcceptanceTestCase):
  3. """
  4. As a developer, I can view an document-based integration, and learn more about it with the linked resources.
  5. """
  6. def setUp(self):
  7. super().setUp()
  8. self.organization = self.create_organization(owner=self.user, name="Walter Mitty")
  9. self.doc = self.create_doc_integration(
  10. name="Quintessence of Life", features=[1, 2, 3], is_draft=False
  11. )
  12. self.login_as(self.user)
  13. def load_page(self, slug):
  14. url = f"/settings/{self.organization.slug}/document-integrations/{slug}/"
  15. self.browser.get(url)
  16. self.browser.wait_until_not('[data-test-id="loading-indicator"]')
  17. def test_view_doc(self):
  18. self.load_page(self.doc.slug)
  19. self.browser.snapshot("integrations - document-based detail overview")
  20. assert self.browser.element_exists('[data-test-id="learn-more"]')