test_project_release_tracking_settings.py 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. from sentry.testutils import AcceptanceTestCase, SnubaTestCase
  2. from sentry.testutils.silo import region_silo_test
  3. @region_silo_test
  4. class ProjectReleaseTrackingSettingsTest(AcceptanceTestCase, SnubaTestCase):
  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.path1 = f"/{self.org.slug}/{self.project.slug}/settings/release-tracking/"
  14. def test_tags_list(self):
  15. self.store_event(
  16. data={
  17. "event_id": "a" * 32,
  18. "message": "oh no",
  19. "environment": "prod",
  20. "release": "first",
  21. "tags": {"Foo": "value"},
  22. },
  23. project_id=self.project.id,
  24. )
  25. self.browser.get(self.path1)
  26. self.browser.wait_until_not('[data-test-id="loading-indicator"]')
  27. self.browser.snapshot("project settings - release tracking")