12345678910111213141516171819202122232425 |
- from django.conf import settings
- from sentry.testutils.cases import AcceptanceTestCase
- from sentry.testutils.silo import no_silo_test
- @no_silo_test
- class CreateOrganizationTest(AcceptanceTestCase):
- def setUp(self):
- super().setUp()
- self.user = self.create_user("foo@example.com")
- self.login_as(self.user)
- def test_simple(self):
- settings.PRIVACY_URL = "https://sentry.io/privacy/"
- settings.TERMS_URL = "https://sentry.io/terms/"
- self.browser.get("/organizations/new/")
- assert self.browser.element_exists('input[name="name"]')
- assert self.browser.element_exists('input[name="agreeTerms"]')
- self.browser.element('input[name="name"]').send_keys("new org")
- self.browser.element('input[name="agreeTerms"]').click()
- self.browser.click('button[type="submit"]')
-
- self.browser.wait_until_test_id("platform-javascript-react")
- assert self.browser.element_exists_by_test_id("create-project")
|