test_organization_document_integration_detailed_view.py 1.0 KB

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