-
Notifications
You must be signed in to change notification settings - Fork 17
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest to create at least one cucumber test here (to document the behaviour) and many components tests if possible.
components/PostCard.vue
Outdated
icon: 'flag' | ||
} | ||
] | ||
// if (this.isAdmin) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No disabled code please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guess why it’s WIP? 🤔😆
…ke in Portal 1 & 2
@roschaefer could you already take a look at the cucumber tests? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here are some requests for the cucumber scenario
So I can look into it and decide what to do | ||
|
||
Scenario: Report a Post from landingpage | ||
Given I am logged in as "user" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given I am logged in as "user" | |
Given I am an ordinary user with no further permissions |
Given I am logged in as "user" | ||
And I am on the "landing" page | ||
|
||
When I click on a Post menu and select the report option |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I click on a Post menu and select the report option | |
When I click the "report" button in the context menu of a post |
And I am on the "landing" page | ||
|
||
When I click on a Post menu and select the report option | ||
And I click on send in the confirmation dialog |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And I click on send in the confirmation dialog | |
And I confirm the question "Do you really want to report this post?" |
|
||
Scenario: See reported content | ||
Given I am logged in as "moderator" | ||
And I previously reported a post |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And I previously reported a post | |
And another user previously reported a post |
And I previously reported a post | ||
|
||
When I am on the "moderation" page | ||
Then I see my reported post |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then I see my reported post | |
Then I see the reported post |
Then I see my reported post | ||
|
||
Scenario: Report while reading Post | ||
Given I am logged in as "admin" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given I am logged in as "admin" | |
Given I am logged in as an ordinary user without privileges |
I would take the user with the lowest authorization.
|
||
When I report the current post | ||
And I visit the "moderation" page | ||
Then I see my reported post |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then I see my reported post | |
Then all the reported content is there |
This communicates that all reported content is in one central location
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implement basic content reporting
As a User
I would like to click on the button
to report inappropriate content
Todos
UI
Dependencies
Relates to Human-Connection/Nitro-Backend#99
Close #70