123456789101112131415161718192021222324252627282930 |
- from sentry.models import GroupShare
- from sentry.testutils import AcceptanceTestCase
- from sentry.testutils.helpers.datetime import before_now, iso_format
- from sentry.testutils.silo import region_silo_test
- from sentry.utils.samples import load_data
- @region_silo_test
- class SharedIssueTest(AcceptanceTestCase):
- def setUp(self):
- super().setUp()
- self.user = self.create_user("foo@example.com")
- self.org = self.create_organization(owner=self.user, name="Rowdy Tiger")
- self.team = self.create_team(organization=self.org, name="Mariachi Band")
- self.project = self.create_project(organization=self.org, teams=[self.team], name="Bengal")
- self.login_as(self.user)
- def test_python_event(self):
- data = load_data(platform="python")
- data["timestamp"] = iso_format(before_now(days=1))
- event = self.store_event(data=data, project_id=self.project.id)
- GroupShare.objects.create(project_id=event.group.project_id, group=event.group)
- self.browser.get(
- f"/organizations/{self.org.slug}/share/issue/{event.group.get_share_id()}/"
- )
- self.browser.wait_until_not('[data-test-id="loading-indicator"]')
- self.browser.wait_until_not('[data-test-id="event-entries-loading-false"]')
- self.browser.snapshot("shared issue python")
|