mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
65 lines
2.9 KiB
Python
65 lines
2.9 KiB
Python
from sentry.testutils.cases import AcceptanceTestCase
|
|
from sentry.testutils.silo import no_silo_test
|
|
|
|
|
|
@no_silo_test
|
|
class AccountSettingsTest(AcceptanceTestCase):
|
|
def setUp(self):
|
|
super().setUp()
|
|
self.user = self.create_user("[email protected]")
|
|
self.org = self.create_organization(name="Rowdy Tiger Rowdy Tiger Rowdy Tiger", owner=None)
|
|
self.team = self.create_team(
|
|
organization=self.org, name="Mariachi Band Mariachi Band Mariachi Band"
|
|
)
|
|
self.project = self.create_project(
|
|
organization=self.org, teams=[self.team], name="Bengal Bengal Bengal Bengal"
|
|
)
|
|
self.create_member(user=self.user, organization=self.org, role="owner", teams=[self.team])
|
|
second_org = self.create_organization(name="Multiple Owners", owner=self.user)
|
|
self.create_member(
|
|
user=self.create_user("[email protected]"), organization=second_org, role="owner"
|
|
)
|
|
self.login_as(self.user)
|
|
|
|
def test_account_security_settings(self):
|
|
with self.options({"system.url-prefix": self.browser.live_server_url}), self.feature(
|
|
"organizations:onboarding"
|
|
):
|
|
self.browser.get("/settings/account/security/")
|
|
self.browser.wait_until_not('[data-test-id="loading-indicator"]')
|
|
|
|
def test_account_notifications(self):
|
|
with self.options({"system.url-prefix": self.browser.live_server_url}), self.feature(
|
|
"organizations:onboarding"
|
|
):
|
|
self.browser.get("/settings/account/notifications/")
|
|
self.browser.wait_until_not('[data-test-id="loading-indicator"]')
|
|
|
|
self.browser.click_when_visible('[data-test-id="fine-tuning"]')
|
|
self.browser.wait_until_not('[data-test-id="loading-indicator"]')
|
|
|
|
def test_account_emails_settings(self):
|
|
with self.feature("organizations:onboarding"):
|
|
self.browser.get("/settings/account/emails/")
|
|
self.browser.wait_until_not('[data-test-id="loading-indicator"]')
|
|
|
|
def test_account_subscriptions_settings(self):
|
|
with self.feature("organizations:onboarding"):
|
|
self.browser.get("/settings/account/subscriptions/")
|
|
self.browser.wait_until_not('[data-test-id="loading-indicator"]')
|
|
|
|
def test_account_authorizations_settings(self):
|
|
with self.feature("organizations:onboarding"):
|
|
self.browser.get("/account/authorizations/")
|
|
self.browser.wait_until_not('[data-test-id="loading-indicator"]')
|
|
|
|
def test_account_identities_settings(self):
|
|
with self.feature("organizations:onboarding"):
|
|
self.browser.get("/settings/account/identities/")
|
|
self.browser.wait_until_not('[data-test-id="loading-indicator"]')
|
|
|
|
def test_close_account(self):
|
|
with self.options({"system.url-prefix": self.browser.live_server_url}):
|
|
self.browser.get("/account/remove/")
|
|
self.browser.wait_until_not('[data-test-id="loading-indicator"]')
|