[RAM][Security Solution] Fix rule snooze toast copy (#166030)

## Summary

Fixes #156143

Updates toasts saying `Rule successfully snoozed` to `Rules notification
successfully snoozed`. Does the same for `unsnoozed`.

### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)

---------

Co-authored-by: Lisa Cawley <lcawley@elastic.co>
This commit is contained in:
Zacqary Adam Xeper 2023-09-07 18:17:42 -05:00 committed by GitHub
parent 2490b5dec6
commit 649dc49437
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -10,14 +10,14 @@ import { i18n } from '@kbn/i18n';
export const SNOOZE_SUCCESS_MESSAGE = i18n.translate(
'xpack.triggersActionsUI.sections.rulesList.rulesListSnoozePanel.snoozeSuccess',
{
defaultMessage: 'Rule successfully snoozed',
defaultMessage: 'Rules notification successfully snoozed',
}
);
export const UNSNOOZE_SUCCESS_MESSAGE = i18n.translate(
'xpack.triggersActionsUI.sections.rulesList.rulesListSnoozePanel.unsnoozeSuccess',
{
defaultMessage: 'Rule successfully unsnoozed',
defaultMessage: 'Rules notification successfully unsnoozed',
}
);

View file

@ -36,7 +36,7 @@ export function snoozeRule(duration: SnoozeDuration): void {
}
export function expectSnoozeSuccessToast(): void {
cy.get(TOASTER).should('contain', 'Rule successfully snoozed');
cy.get(TOASTER).should('contain', 'Rules notification successfully snoozed');
}
export function expectSnoozeErrorToast(): void {
@ -72,7 +72,7 @@ export function unsnoozeRule(): void {
}
export function expectUnsnoozeSuccessToast(): void {
cy.get(TOASTER).should('contain', 'Rule successfully unsnoozed');
cy.get(TOASTER).should('contain', 'Rules notification successfully unsnoozed');
}
export function expectRuleUnsnoozed(): void {