From 62bb5868787e409771d2c75b5d44d8e7843ef3d0 Mon Sep 17 00:00:00 2001 From: Marcus Low Date: Fri, 10 Jan 2025 19:31:09 -0800 Subject: [PATCH] AO3-6872 add test for archivist collection notification --- features/collections/collection_notification.feature | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/features/collections/collection_notification.feature b/features/collections/collection_notification.feature index 49a52f4861b..bfbb0864d2b 100644 --- a/features/collections/collection_notification.feature +++ b/features/collections/collection_notification.feature @@ -47,6 +47,18 @@ Feature: Collectible items email And I should see "Antarctic Penguins" And 1 email should be delivered to test2@archiveofourown.org + Scenario: Work added to collection by Archivist sends notification email + Given I have a work "cool work" + And I have an archivist "archivist" + And all emails have been delivered + When I am logged in as "archivist" + And I create the collection "Cold Collection" with name "ColdCollection" + And I view the work "cool work" + And I follow "Add to Collections" + And I fill in "collection_names" with "ColdCollection" + And I press "Add" + Then 1 email should be delivered + Scenario: Bookmark added to collection sends notification email Given all email have been delivered When I have the collection "Dont Bookmark Me Bro" with name "dont_bookmark_me_bro"