Fix Report.feature

This commit is contained in:
roschaefer 2019-09-03 03:11:29 +02:00
parent 933e092549
commit 8c7e3708a4
2 changed files with 5 additions and 2 deletions

View File

@ -121,7 +121,11 @@ Given('somebody reported the following posts:', table => {
cy.factory()
.create('User', submitter)
.authenticateAs(submitter)
.create('Report', {
.mutate(`mutation($id: ID!, $description: String!) {
report(description: $description, id: $id) {
id
}
}`, {
id,
description: 'Offensive content'
})

View File

@ -15,7 +15,6 @@ Feature: Report and Moderate
| authorId | id | title | content |
| u67 | p1 | The Truth about the Holocaust | It never existed! |
Scenario Outline: Report a post from various pages
Given I am logged in with a "user" role
When I see David Irving's post on the <Page>