test_api.py 1.3 KB

123456789101112131415161718192021222324252627282930
  1. from sentry.testutils.cases import AcceptanceTestCase
  2. class ApiApplicationTest(AcceptanceTestCase):
  3. def setUp(self):
  4. super().setUp()
  5. self.org = self.create_organization(name="Rowdy Tiger Rowdy Tiger Rowdy Tiger", owner=None)
  6. self.project = self.create_project(
  7. organization=self.org, teams=[self.team], name="Bengal Bengal Bengal Bengal"
  8. )
  9. self.login_as(self.user)
  10. self.path = "/api/applications/"
  11. def test_simple(self):
  12. self.browser.get(self.path)
  13. self.browser.wait_until_not('[data-test-id="loading-indicator"]')
  14. self.browser.click_when_visible('[aria-label="Create New Application"]')
  15. self.browser.wait_until_not('[data-test-id="loading-indicator"]')
  16. self.browser.click('[href="/settings/account/api/applications/"]')
  17. self.browser.wait_until_not('[data-test-id="loading-indicator"]')
  18. self.browser.click_when_visible('[data-test-id="toast-success"]')
  19. self.browser.wait_until_not('[data-test-id="toast-success"]')
  20. self.browser.get(self.path)
  21. self.browser.wait_until_not('[data-test-id="loading-indicator"]')
  22. self.browser.click_when_visible('[aria-label="Remove"]')
  23. self.browser.wait_until_not('[data-test-id="toast-loading"]')
  24. self.browser.wait_until_test_id("empty-message")