From 6b2c207c44761b9a682b9b82f55a665ec7fad595 Mon Sep 17 00:00:00 2001 From: mahula Date: Wed, 16 Apr 2025 23:31:41 +0200 Subject: [PATCH] e2e: rework follow notification feature files --- cypress/e2e/Group.Notification.feature | 7 +++++-- cypress/e2e/Post.Follow.Notification.feature | 4 +++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/cypress/e2e/Group.Notification.feature b/cypress/e2e/Group.Notification.feature index df90ceef2..36a8e4acc 100644 --- a/cypress/e2e/Group.Notification.feature +++ b/cypress/e2e/Group.Notification.feature @@ -22,12 +22,15 @@ Feature: Notifications for Groups And "Bob der Baumeister" joins the group "Jenny's Group" And "Billy Block" joins the group "Jenny's Group" - Scenario: In-app notification + Scenario: Get notified about new post in group Given "Bob der Baumeister" posts to group "Jenny's Group" - Then "Jenny Rostock" receives an email about a new post in group "Jenny's Group" + Then "Jenny Rostock" receives "1" email about a new post in group "Jenny's Group" And the email contains a deep link to the post When I am logged in as "Jenny Rostock" Then I see a notification about the new post in the dashboard + When "Bob der Baumeister" posts to group "Jenny's Group" + Then "Jenny Rostock" receives "0" email about a new post in group "Jenny's Group" + # omit these scenarios as the different ways to deactivate notifications for groups are covered in unit testing diff --git a/cypress/e2e/Post.Follow.Notification.feature b/cypress/e2e/Post.Follow.Notification.feature index 7f888acb9..57da84a05 100644 --- a/cypress/e2e/Post.Follow.Notification.feature +++ b/cypress/e2e/Post.Follow.Notification.feature @@ -24,9 +24,11 @@ Feature: Notifications Posts Scenario: Receive notifications regarding observed Post Given "Bob der Baumeister" observes the post "nicePost" When "Nathan Narrator" comments on the post "nicePost" - Then "moderator@example.org" receives an email regarding "The nice Post" + Then "moderator@example.org" receives "0" email regarding "The nice Post" When I am logged in as "Bob der Baumeister" Then a notification about the new post is displayed in the nav menu + When "Jenny Rostock" comments on the post "nicePost" + Then "moderator@example.org" receives "1" email regarding "The nice Post" # omit these scenarios as the different ways into observing /unobserving a post should be covered in unit testing