test_project_general_settings.py 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. from sentry.testutils.cases import AcceptanceTestCase
  2. from sentry.testutils.silo import no_silo_test
  3. @no_silo_test(stable=True)
  4. class ProjectGeneralSettingsTest(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=None)
  9. self.team = self.create_team(organization=self.org, name="Mariachi Band")
  10. self.project = self.create_project(organization=self.org, teams=[self.team], name="Bengal")
  11. self.create_member(user=self.user, organization=self.org, role="owner", teams=[self.team])
  12. self.login_as(self.user)
  13. def test_saved_searches(self):
  14. path = f"/{self.org.slug}/{self.project.slug}/settings/"
  15. self.browser.get(path)
  16. self.browser.wait_until_not('[data-test-id="loading-indicator"]')
  17. self.browser.snapshot("project settings - general settings")
  18. def test_mobile_menu(self):
  19. """
  20. It is only possible to open the menu at mobile widths
  21. """
  22. path = f"/{self.org.slug}/{self.project.slug}/settings/"
  23. with self.browser.mobile_viewport():
  24. self.browser.get(path)
  25. self.browser.wait_until_not('[data-test-id="loading-indicator"]')
  26. self.browser.click('[aria-label="Open the menu"]')
  27. self.browser.wait_until("body.scroll-lock")
  28. self.browser.snapshot("project settings - mobile menu", mobile_only=True)