Browse Source

feat(IntegrationDirectory): Add acceptance test for document-based integrations (#18197)

Objective
Add percy snapshot tests for document-based integrations.
NisanthanNanthakumar 4 years ago
parent
commit
893fc86045

+ 24 - 0
tests/acceptance/test_organization_document_integration_detailed_view.py

@@ -0,0 +1,24 @@
+from __future__ import absolute_import
+
+from sentry.testutils import AcceptanceTestCase
+
+
+class OrganizationDocumentIntegrationDetailView(AcceptanceTestCase):
+    """
+    As a developer, I can view an document-based integration, and learn more about it with the linked resources.
+    """
+
+    def setUp(self):
+        super(OrganizationDocumentIntegrationDetailView, self).setUp()
+        self.login_as(self.user)
+
+    def load_page(self, slug):
+        url = u"/settings/{}/document-integrations/{}/".format(self.organization.slug, slug)
+        self.browser.get(url)
+        self.browser.wait_until_not(".loading-indicator")
+
+    def test_view_datadog(self):
+        self.load_page("datadog")
+        self.browser.snapshot("integrations - document-based detail overview")
+
+        assert self.browser.element_exists('[data-test-id="learn-more"]')