test_project_general_settings.py 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. from sentry.testutils import AcceptanceTestCase
  2. class ProjectGeneralSettingsTest(AcceptanceTestCase):
  3. def setUp(self):
  4. super().setUp()
  5. self.user = self.create_user("foo@example.com")
  6. self.org = self.create_organization(name="Rowdy Tiger", owner=None)
  7. self.team = self.create_team(organization=self.org, name="Mariachi Band")
  8. self.project = self.create_project(organization=self.org, teams=[self.team], name="Bengal")
  9. self.create_member(user=self.user, organization=self.org, role="owner", teams=[self.team])
  10. self.login_as(self.user)
  11. def test_saved_searches(self):
  12. path = f"/{self.org.slug}/{self.project.slug}/settings/"
  13. self.browser.get(path)
  14. self.browser.wait_until_not('[data-test-id="loading-indicator"]')
  15. self.browser.snapshot("project settings - general settings")
  16. def test_mobile_menu(self):
  17. """
  18. It is only possible to open the menu at mobile widths
  19. """
  20. path = f"/{self.org.slug}/{self.project.slug}/settings/"
  21. with self.browser.mobile_viewport():
  22. self.browser.get(path)
  23. self.browser.wait_until_not('[data-test-id="loading-indicator"]')
  24. self.browser.click('[aria-label="Open the menu"]')
  25. self.browser.wait_until("body.scroll-lock")
  26. self.browser.snapshot("project settings - mobile menu", mobile_only=True)