e2e: rework follow notification feature files

This commit is contained in:
mahula 2025-04-16 23:31:41 +02:00
parent c7fcd2b335
commit 6b2c207c44
2 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -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