diff --git a/cypress/integration/common/report.js b/cypress/integration/common/report.js index 2c8b848b4..180353328 100644 --- a/cypress/integration/common/report.js +++ b/cypress/integration/common/report.js @@ -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' }) diff --git a/cypress/integration/moderation/ReportContent.feature b/cypress/integration/moderation/ReportContent.feature index a5f7f2f50..0181dc7a6 100644 --- a/cypress/integration/moderation/ReportContent.feature +++ b/cypress/integration/moderation/ReportContent.feature @@ -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