Remove TODOs

This commit is contained in:
Robert Schäfer 2019-02-26 00:24:54 +01:00
parent 7c629ed4f0
commit a14a819420
2 changed files with 1 additions and 9 deletions

View File

@ -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)

View File

@ -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')
})