From 0ee3ade1895ff10f14db45537d8cf716ef82a5e8 Mon Sep 17 00:00:00 2001 From: mahula Date: Tue, 6 May 2025 20:04:19 +0200 Subject: [PATCH] e2e: rename users for chat notification tests --- cypress/e2e/Chat.Message.Notification.feature | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/cypress/e2e/Chat.Message.Notification.feature b/cypress/e2e/Chat.Message.Notification.feature index 7bbbeca3f..833eb7e5b 100644 --- a/cypress/e2e/Chat.Message.Notification.feature +++ b/cypress/e2e/Chat.Message.Notification.feature @@ -9,23 +9,23 @@ Feature: Notifications for Chat Messages via E-Mail Background: Given the following "users" are in the database: - | name | slug | email | password | id | termsAndConditionsAgreedVersion | - | Bob der Baumeister | bob-der-baumeister | moderator@example.org | 1234 | u2 | 0.0.4 | - | Jenny Rostock | jenny-rostock | user@example.org | 1234 | u3 | 0.0.4 | - | Nathan Narrator | nathan-narrator | narrator@example.org | abcd | u_nn | 0.0.4 | - | Billy Block | billy-block | billy@example.org | 4321 | u_bb | 0.0.4 | - And "Bob der Baumeister" mutes "Nathan Narrator" - And "Bob der Baumeister" blocks "Billy Block" + | name | slug | email | password | id | termsAndConditionsAgreedVersion | + | Chilly Chatter | chilly-chatter | chilly.chatter@example.org | 1234 | u_cc | 0.0.4 | + | Michi Mute | michi-mute | michi.mute@example.org | 1234 | u_mm | 0.0.4 | + | Billy Block | billy-block | billy.block@example.org | 1234 | u_bb | 0.0.4 | + | Anna Absent | anna-absent | anna.absent@example.org | 1234 | u_aa | 0.0.4 | + And "Anna Absent" mutes "Michi Mute" + And "Anna Absent" blocks "Billy Block" And the mailserver inbox is empty Scenario: Receive Chat Notification Email only when Online - When "Jenny Rostock" sends a chat message to "Bob der Baumeister" - And "Nathan Narrator" sends a chat message to "Bob der Baumeister" - And "Billy Block" sends a chat message to "Bob der Baumeister" - Then "moderator@example.org" should receive "1" chat notification email referencing "Jenny Rostock" + When "Chilly Chatter" sends a chat message to "Anna Absent" + And "Michi Mute" sends a chat message to "Anna Absent" + And "Billy Block" sends a chat message to "Anna Absent" + Then "moderator@example.org" should receive "1" chat notification email referencing "Chilly Chatter" When I am logged in as "bob-der-baumeister" - And "Jenny Rostock" sends a chat message to "Bob der Baumeister" - And "Nathan Narrator" sends a chat message to "Bob der Baumeister" - And "Billy Block" sends a chat message to "Bob der Baumeister" - Then "moderator@example.org" should receive no chat notification email + And "Chilly Chatter" sends a chat message to "Anna Absent" + And "Michi Mute" sends a chat message to "Anna Absent" + And "Billy Block" sends a chat message to "Anna Absent" + Then "anna.absent@example.org" should receive no chat notification email \ No newline at end of file