test_organization_join_request.py 594 B

123456789101112131415
  1. from sentry.testutils.cases import AcceptanceTestCase
  2. from sentry.testutils.silo import no_silo_test
  3. @no_silo_test(stable=True)
  4. class OrganizationJoinRequestTest(AcceptanceTestCase):
  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=self.user)
  9. def test_view(self):
  10. self.browser.get(f"/join-request/{self.org.slug}/")
  11. self.browser.wait_until('[data-test-id="join-request"]')
  12. assert self.browser.element_exists('[data-test-id="join-request"]')