test_sessionstack.py 947 B

12345678910111213141516171819
  1. from sentry.testutils import AcceptanceTestCase
  2. class SessionStackTest(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/plugins/sessionstack/"
  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("sessionstack settings")
  16. assert self.browser.element_exists(".ref-plugin-config-sessionstack")