test_project_ownership.py 983 B

12345678910111213141516171819202122232425
  1. from sentry.testutils.cases import AcceptanceTestCase
  2. from sentry.testutils.silo import no_silo_test
  3. @no_silo_test(stable=True)
  4. class ProjectOwnershipTest(AcceptanceTestCase):
  5. def setUp(self):
  6. super().setUp()
  7. self.login_as(self.user)
  8. self.path = f"/settings/{self.organization.slug}/projects/{self.project.slug}/ownership/"
  9. def test_simple(self):
  10. self.browser.get(self.path)
  11. self.browser.wait_until_not(".loading")
  12. self.browser.wait_until_test_id("issueowners-panel")
  13. self.browser.snapshot("project ownership")
  14. def test_open_modal(self):
  15. self.browser.get(self.path)
  16. self.browser.wait_until_not(".loading")
  17. self.browser.wait_until_test_id("issueowners-panel")
  18. self.browser.click('[aria-label="Edit"]')
  19. self.browser.wait_until("[role='dialog']")
  20. self.browser.wait_until_not("div[class$='loadingIndicator']")
  21. self.browser.snapshot("project ownership modal")