Exemple #1
0
    def test_add_sentry_app(self):
        self.load_page(self.sentry_app.slug)
        self.browser.snapshot("integrations - sentry app detail uninstalled")

        detail_view_page = OrganizationSentryAppDetailViewPage(
            browser=self.browser)
        detail_view_page.click_install_button()

        self.browser.wait_until('[data-test-id="toast-success"]')
        assert SentryAppInstallation.objects.filter(
            organization=self.organization, sentry_app=self.sentry_app)
Exemple #2
0
    def test_uninstallation(self):
        self.installation = self.create_sentry_app_installation(
            slug=self.sentry_app.slug, organization=self.organization, user=self.user
        )

        self.load_page(self.sentry_app.slug)
        self.browser.snapshot("integrations - sentry app detail installed")

        detail_view_page = OrganizationSentryAppDetailViewPage(browser=self.browser)

        detail_view_page.uninstall()
        self.browser.wait_until('[data-test-id="toast-success"]')
        assert not SentryAppInstallation.objects.filter(
            organization=self.organization, sentry_app=self.sentry_app
        )