From fc567b9d8432395f380e26736bf87fc08509f57a Mon Sep 17 00:00:00 2001 From: mattwr18 Date: Thu, 9 Jan 2020 13:47:30 +0100 Subject: [PATCH] Remove Content.feature - Muting a user means I cannot see their content, they can still see mine - Even for blocking, we want a blocked user to be able to see the content just not interact with it. --- backend/src/schema/types/type/User.gql | 4 ++-- .../user_profile/mute-users/Content.feature | 22 ------------------- 2 files changed, 2 insertions(+), 24 deletions(-) delete mode 100644 cypress/integration/user_profile/mute-users/Content.feature diff --git a/backend/src/schema/types/type/User.gql b/backend/src/schema/types/type/User.gql index 93c3f3de9..f9419b175 100644 --- a/backend/src/schema/types/type/User.gql +++ b/backend/src/schema/types/type/User.gql @@ -77,8 +77,8 @@ type User { isMuted: Boolean! @cypher( statement: """ - MATCH (this)<-[: MUTED]-(u: User { id: $cypherParams.currentUserId}) - RETURN COUNT(u) >= 1 + MATCH (this)<-[:MUTED]-(user:User { id: $cypherParams.currentUserId}) + RETURN COUNT(user) >= 1 """ ) diff --git a/cypress/integration/user_profile/mute-users/Content.feature b/cypress/integration/user_profile/mute-users/Content.feature deleted file mode 100644 index ef26c6559..000000000 --- a/cypress/integration/user_profile/mute-users/Content.feature +++ /dev/null @@ -1,22 +0,0 @@ -Feature: Mute a User - As a user - I'd like to have a button to block another user - To prevent him from seeing and interacting with my contributions and also to avoid seeing his/her posts - - Background: - Given I have a user account - And there is an annoying user called "Spammy Spammer" - - Scenario Outline: Muted users cannot see each others posts - Given "Spammy Spammer" wrote a post "Spam Spam Spam" - And I wrote a post "I hate spammers" - And I mute the user "Spammy Spammer" - When I log in with: - | Email | Password | - | | | - Then I see only one post with the title "" - Examples: - | email | password | expected_title | - | peterpan@example.org | 1234 | I hate spammers | - | spammy-spammer@example.org | 1234 | Spam Spam Spam | -