diff --git a/features/other_a/orphan_pseud.feature b/features/other_a/orphan_pseud.feature index 069980c1491..a144c7ac1c1 100644 --- a/features/other_a/orphan_pseud.feature +++ b/features/other_a/orphan_pseud.feature @@ -18,6 +18,8 @@ Feature: Orphan pseud When I follow "Back To Pseuds" Then I should see "orphanpseud" And I should see "2 works" + # Delay before orphaning to make sure the cache is expired + And it is currently 1 second from now When I follow "Orphan Works" Then I should see "Orphan All Works by orphanpseud" When I choose "Take my pseud off as well" @@ -44,6 +46,8 @@ Feature: Orphan pseud When I follow "Back To Pseuds" Then I should see "orphanpseud" And I should see "2 works" + # Delay before orphaning to make sure the cache is expired + And it is currently 1 second from now When I follow "Orphan Works" Then I should see "Orphan All Works by orphanpseud" When I choose "Leave a copy of my pseud on" diff --git a/features/tags_and_wrangling/tag_wrangling.feature b/features/tags_and_wrangling/tag_wrangling.feature index 833b9ee1dc0..eebd9dcb3c2 100644 --- a/features/tags_and_wrangling/tag_wrangling.feature +++ b/features/tags_and_wrangling/tag_wrangling.feature @@ -330,6 +330,8 @@ Feature: Tag wrangling When I edit the tag "Child" And I check the 1st checkbox with id matching "MetaTag" And I fill in "tag_meta_tag_string" with "Grandparent" + # Ensure a new cache key will be used + And it is currently 1 second from now And I press "Save changes" Then I should see "Tag was updated" And I should see "Grandparent" within "#parent_MetaTag_associations_to_remove_checkboxes" diff --git a/features/users/user_delete.feature b/features/users/user_delete.feature index c43bfdf3e68..e47f9a1af54 100644 --- a/features/users/user_delete.feature +++ b/features/users/user_delete.feature @@ -45,6 +45,8 @@ Scenario: Allow a user to orphan their works when deleting their account When I try to delete my account as orphaner Then I should see "What do you want to do with your works?" When I choose "Change my pseud to "orphan" and attach to the orphan account" + # Delay before orphaning to make sure the cache is expired + And it is currently 1 second from now And I press "Save" Then I should see "You have successfully deleted your account." And 0 emails should be delivered @@ -66,6 +68,8 @@ Scenario: Delete a user with a collection When I try to delete my account as moderator Then I should see "You have 1 collection(s) under the following pseuds: moderator." When I choose "Change my pseud to "orphan" and attach to the orphan account" + # Delay before orphaning to make sure the cache is expired + And it is currently 1 second from now And I press "Save" Then I should see "You have successfully deleted your account." And 0 emails should be delivered @@ -73,9 +77,8 @@ Scenario: Delete a user with a collection And a user account should not exist for "moderator" When I go to the collections page Then I should see "fake" - # TODO: And a caching bug is fixed... - # And I should see "orphan_account" - # And I should not see "moderator" + And I should see "orphan_account" + And I should not see "moderator" Scenario: Delete a user who has coauthored a work Given the following activated users exist