From 8c7e3708a4cd6602072a33a4c1723306d3b5ead6 Mon Sep 17 00:00:00 2001 From: roschaefer Date: Tue, 3 Sep 2019 03:11:29 +0200 Subject: [PATCH] Fix `Report.feature` --- cypress/integration/common/report.js | 6 +++++- cypress/integration/moderation/ReportContent.feature | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) 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