test_project_ownership.py 903 B

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