diff --git a/x-pack/plugins/synthetics/e2e/journeys/synthetics/alert_rules/default_status_alert.journey.ts b/x-pack/plugins/synthetics/e2e/journeys/synthetics/alert_rules/default_status_alert.journey.ts index b9fc467fc0bef..2373b9712a753 100644 --- a/x-pack/plugins/synthetics/e2e/journeys/synthetics/alert_rules/default_status_alert.journey.ts +++ b/x-pack/plugins/synthetics/e2e/journeys/synthetics/alert_rules/default_status_alert.journey.ts @@ -58,6 +58,7 @@ journey(`DefaultStatusAlert`, async ({ page, params }) => { await page.isDisabled(byTestId('xpack.synthetics.toggleAlertFlyout')); await page.click(byTestId('xpack.synthetics.toggleAlertFlyout')); await page.waitForSelector('text=Edit rule'); + expect(await page.locator(`[data-test-subj="intervalFormRow"]`).count()).toEqual(0); await page.click(byTestId('saveEditedRuleButton')); await page.waitForSelector("text=Updated 'Synthetics internal alert'"); }); diff --git a/x-pack/plugins/synthetics/public/apps/synthetics/lib/alert_types/monitor_status.tsx b/x-pack/plugins/synthetics/public/apps/synthetics/lib/alert_types/monitor_status.tsx index 278eb6d522db3..2c4d5055a0891 100644 --- a/x-pack/plugins/synthetics/public/apps/synthetics/lib/alert_types/monitor_status.tsx +++ b/x-pack/plugins/synthetics/public/apps/synthetics/lib/alert_types/monitor_status.tsx @@ -41,7 +41,7 @@ export const initMonitorStatusAlertType: AlertTypeInitializer = ({ ruleParamsExpression: (paramProps: RuleTypeParamsExpressionProps) => ( ), - validate: (ruleParams: StatusRuleParams) => { + validate: (_ruleParams: StatusRuleParams) => { return { errors: {} }; }, defaultActionMessage, diff --git a/x-pack/plugins/triggers_actions_ui/public/application/sections/rule_form/rule_edit.tsx b/x-pack/plugins/triggers_actions_ui/public/application/sections/rule_form/rule_edit.tsx index 94d6b1b398824..b83d2f068e592 100644 --- a/x-pack/plugins/triggers_actions_ui/public/application/sections/rule_form/rule_edit.tsx +++ b/x-pack/plugins/triggers_actions_ui/public/application/sections/rule_form/rule_edit.tsx @@ -76,6 +76,7 @@ export const RuleEdit = ({ onClose, reloadRules, onSave, + hideInterval, ruleTypeRegistry, actionTypeRegistry, metadata: initialMetadata, @@ -233,6 +234,7 @@ export const RuleEdit = ({ dispatch={dispatch} errors={ruleErrors} actionTypeRegistry={actionTypeRegistry} + hideInterval={hideInterval} ruleTypeRegistry={ruleTypeRegistry} canChangeTrigger={false} setHasActionsDisabled={setHasActionsDisabled}