From 872675ff3bf300a6f02e4eb48276c4711d11d73d Mon Sep 17 00:00:00 2001 From: schew2381 Date: Tue, 19 Sep 2023 19:23:07 -0700 Subject: [PATCH] split into: https://github.com/getsentry/sentry/pull/56537 --- tests/acceptance/test_api.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/tests/acceptance/test_api.py b/tests/acceptance/test_api.py index f216fdcea237b4..376da4667f0f56 100644 --- a/tests/acceptance/test_api.py +++ b/tests/acceptance/test_api.py @@ -1,4 +1,27 @@ from sentry.testutils.cases import AcceptanceTestCase +from sentry.testutils.silo import no_silo_test + + +@no_silo_test(stable=True) +class ApiTokensTest(AcceptanceTestCase): + def setUp(self): + super().setUp() + self.org = self.create_organization(name="Rowdy Tiger Rowdy Tiger Rowdy Tiger", owner=None) + self.project = self.create_project( + organization=self.org, teams=[self.team], name="Bengal Bengal Bengal Bengal" + ) + self.login_as(self.user) + self.path = "/api/" + + def test_simple(self): + self.browser.get(self.path) + self.browser.wait_until_not('[data-test-id="loading-indicator"]') + + self.browser.click_when_visible('[data-test-id="create-token"]') + self.browser.wait_until_not('[data-test-id="loading-indicator"]') + + self.browser.click_when_visible('[data-test-id="form-submit"]') + self.browser.wait_until_not('[data-test-id="loading-indicator"]') class ApiApplicationTest(AcceptanceTestCase):