test_project_data_forwarding_settings.py 961 B

1234567891011121314151617181920
  1. from sentry.testutils import AcceptanceTestCase
  2. class ProjectDataForwardingSettingsTest(AcceptanceTestCase):
  3. def setUp(self):
  4. super().setUp()
  5. self.user = self.create_user("foo@example.com")
  6. self.org = self.create_organization(name="Rowdy Tiger", owner=None)
  7. self.team = self.create_team(organization=self.org, name="Mariachi Band")
  8. self.project = self.create_project(organization=self.org, teams=[self.team], name="Bengal")
  9. self.create_member(user=self.user, organization=self.org, role="owner", teams=[self.team])
  10. self.login_as(self.user)
  11. self.path = f"/{self.org.slug}/{self.project.slug}/settings/data-forwarding/"
  12. def test_simple(self):
  13. self.browser.get(self.path)
  14. self.browser.wait_until_not('[data-test-id="loading-indicator"]')
  15. self.browser.snapshot("project data forwarding settings")
  16. self.browser.wait_until_test_id("data-forwarding-settings")