+
setActions(values)}
+ >
+
+
+ Notify via email
+
+ {!shouldRenderSetupButton && provider && (
+
+
+ Notify via integration (Slack, Discord, MS Teams, etc.)
+
+ {shouldRenderNotificationConfigs && (
+
+ )}
+
+ )}
+
+
+ {shouldRenderSetupButton && (
+
+ )}
+
+ );
+}
+
+const Wrapper = styled('div')`
+ display: flex;
+ flex-direction: column;
+ gap: ${space(1)};
+`;
diff --git a/static/app/views/projectInstall/issueAlertOptions.spec.tsx b/static/app/views/projectInstall/issueAlertOptions.spec.tsx
index c7c8f3a8f779f3..ae1076776ca687 100644
--- a/static/app/views/projectInstall/issueAlertOptions.spec.tsx
+++ b/static/app/views/projectInstall/issueAlertOptions.spec.tsx
@@ -1,3 +1,5 @@
+import {OrganizationFixture} from 'sentry-fixture/organization';
+import {OrganizationIntegrationsFixture} from 'sentry-fixture/organizationIntegrations';
import {
MOCK_RESP_INCONSISTENT_INTERVALS,
MOCK_RESP_INCONSISTENT_PLACEHOLDERS,
@@ -5,23 +7,50 @@ import {
MOCK_RESP_VERBOSE,
} from 'sentry-fixture/ruleConditions';
-import {initializeOrg} from 'sentry-test/initializeOrg';
import {render, screen, userEvent} from 'sentry-test/reactTestingLibrary';
import selectEvent from 'sentry-test/selectEvent';
import IssueAlertOptions from 'sentry/views/projectInstall/issueAlertOptions';
describe('IssueAlertOptions', function () {
- const {organization} = initializeOrg();
+ const organization = OrganizationFixture({
+ features: ['messaging-integration-onboarding-project-creation'],
+ });
const URL = `/projects/${organization.slug}/rule-conditions/`;
const props = {
onChange: jest.fn(),
};
+
+ const notificationProps = {
+ alertNotificationAction: [],
+ alertNotificationChannel: 'channel',
+ alertNotificationIntegration: OrganizationIntegrationsFixture({
+ name: "Moo Deng's Workspace",
+ status: 'disabled',
+ }),
+ alertNotificationProvider: 'slack',
+ setAlertNotificationAction: jest.fn(),
+ setAlertNotificationChannel: jest.fn(),
+ setAlertNotificationIntegration: jest.fn(),
+ setAlertNotificationProvider: jest.fn(),
+ };
+
+ const getComponent = () =>