From a14a81942042bffe1363b9b37f4b3b223eddfea9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=A4fer?= Date: Tue, 26 Feb 2019 00:24:54 +0100 Subject: [PATCH] Remove TODOs --- cypress/integration/common/admin.js | 2 -- cypress/integration/common/report.js | 8 +------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/cypress/integration/common/admin.js b/cypress/integration/common/admin.js index b0bc60c16..03cbe5fca 100644 --- a/cypress/integration/common/admin.js +++ b/cypress/integration/common/admin.js @@ -11,7 +11,6 @@ When('I navigate to the administration dashboard', () => { }) Then('I can see a list of categories ordered by post count:', table => { - // TODO: match the table in the feature with the html table cy.get('thead') .find('tr th') .should('have.length', 3) @@ -24,7 +23,6 @@ Then('I can see a list of categories ordered by post count:', table => { }) Then('I can see a list of tags ordered by user count:', table => { - // TODO: match the table in the feature with the html table cy.get('thead') .find('tr th') .should('have.length', 4) diff --git a/cypress/integration/common/report.js b/cypress/integration/common/report.js index 380d51034..3f2895dd9 100644 --- a/cypress/integration/common/report.js +++ b/cypress/integration/common/report.js @@ -111,12 +111,8 @@ Then(`I can't see the moderation menu item`, () => { .should('not.exist') }) -When(/^I confirm the reporting dialog .*:$/, () => { - //TODO: take message from method argument - //TODO: match the right post - const message = 'Do you really want to report the' +When(/^I confirm the reporting dialog .*:$/, (message) => { cy.contains(message) // wait for element to become visible - //TODO: cy.get('.ds-modal').contains(davidIrvingPostTitle) cy.get('.ds-modal').within(() => { cy.get('button') .contains('Send Report') @@ -141,14 +137,12 @@ Given('somebody reported the following posts:', table => { }) Then('I see all the reported posts including the one from above', () => { - //TODO: match the right post cy.get('table tbody').within(() => { cy.contains('tr', davidIrvingPostTitle) }) }) Then('each list item links to the post page', () => { - //TODO: match the right post cy.contains(davidIrvingPostTitle).click() cy.location('pathname').should('contain', '/post') })