test_splunk.py 1011 B

123456789101112131415161718192021
  1. from sentry.testutils.cases import AcceptanceTestCase
  2. from sentry.testutils.silo import region_silo_test
  3. @region_silo_test(stable=True)
  4. class SplunkTest(AcceptanceTestCase):
  5. def setUp(self):
  6. super().setUp()
  7. self.user = self.create_user("foo@example.com")
  8. self.org = self.create_organization(name="Rowdy Tiger", owner=None)
  9. self.team = self.create_team(organization=self.org, name="Mariachi Band")
  10. self.project = self.create_project(organization=self.org, teams=[self.team], name="Bengal")
  11. self.create_member(user=self.user, organization=self.org, role="owner", teams=[self.team])
  12. self.login_as(self.user)
  13. self.path = f"/{self.org.slug}/{self.project.slug}/settings/plugins/splunk/"
  14. def test_simple(self):
  15. self.browser.get(self.path)
  16. self.browser.wait_until_not('[data-test-id="loading-indicator"]')
  17. self.browser.snapshot("splunk settings")
  18. assert self.browser.element_exists(".ref-plugin-config-splunk")