test_project_release_tracking_settings.py 1.2 KB

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