test_organization_join_request.py 647 B

12345678910111213141516
  1. from sentry.testutils import AcceptanceTestCase
  2. from sentry.testutils.silo import region_silo_test
  3. @region_silo_test
  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. self.browser.snapshot(name="organization join request")
  13. assert self.browser.element_exists('[data-test-id="join-request"]')